Python types at PyWeb 2025.01
- Python types at PyWeb 2025.01
- The Answer
- Add
- Add in function
- Shift-left (testing, programming)
- Function with type annotation
- Use mypy
- How add type annotation?
- Infer (deduct) the type
- Type in unannotated function
- Built-in types
- Complex types
- Either this or that type (Union)
- Optional type (variable can also be None)
- Define type alias
- Define complex type alias
- Define type for enum and complex dictionary
- mypy generics - plain
- mypy generics - cannot be any type
- mypy generics - limit the types by listing
- mypy generics - limit by functionality
- Two variables of the same and different types
- mypy suggestions
- The end
- Bloopers
- Define the type of variables
- Define the return type
- Complex types for Python 3.8 and before
- Either this or that type for Python before 3.10