Skip to content
Snippets Groups Projects
Commit 83d41f5e authored by Martin Mareš's avatar Martin Mareš
Browse files

Typing: Drobnosti

parent 01fe648b
Branches
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@
\title{Programování 2: Typové anotace}
\author[Martin Mareš]{Martin Mareš\\\texttt{mj@ucw.cz}}
\institute{Katedra Aplikované Matematiky\\MFF UK Praha}
\date{2021}
\date{2025}
\setbeamersize{text margin left=5mm}
\setbeamersize{text margin right=5mm}
\begin{document}
......@@ -110,7 +110,7 @@ def g(seznam: List[str]) -> None:
\smallskip
Parametrizovaný typ pro seznamy.
Parametrizovaný typ pro seznamy (nově funguje i {\tt list[str]}).
~
......@@ -127,7 +127,7 @@ Buď {\bf int} nebo {\bf None} (též chybí-li parametr při volání).
{\tt\color{blue}
class Třída:\\
~~~~def metoda(self, něco: int):
~~~~def metoda(self, něco: int) -> int:
}
\smallskip
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment