//
Search across all documentation pages
12 pages in this section.
What a type hint actually is, why the interpreter mostly ignores it, and how a separate static checker turns annotations into a second, optional verification layer over Python's dynamic runtime - the mental model behind every other page in this section.
Annotating variables, functions, and returns; runtime vs. static.
`list[int]`, `dict[str, X]`, `Sequence`, `Mapping`, `Iterable`.
Nullable types, narrowing, and `None`-handling.
Static duck typing and `runtime_checkable`.