1. Python types at PyWeb 2025.05
    1. Python types at PyWeb 2025.05
    2. The Answer
    3. Add
    4. Add in function
    5. Shift-left (testing, programming)
    6. Function with type annotation
    7. Use mypy
    8. How add type annotation?
    9. Infer (deduct) the type
    10. Type in unannotated function
    11. Type in annotated function
    12. Built-in types
    13. Complex types
    14. Either this or that type (Union)
    15. Either this or that type for Python before 3.10
    16. Optional type (variable can also be None)
    17. Define type alias
    18. Define complex type alias
    19. Define type for enum and complex dictionary
    20. mypy generics - plain
    21. mypy generics - cannot be any type
    22. mypy generics - limit the types by listing
    23. mypy generics - limit by functionality
    24. Two variables of the same and different types
    25. mypy suggestions
    26. The end
    27. Bloopers
    28. Define the type of variables
    29. Define the return type
    30. Complex types for Python 3.8 and before