1. Python types at PyWeb 2025.01
  2. Python types at PyWeb 2025.01
    1. Python types at PyWeb 2025.01
    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. Built-in types
    12. Complex types
    13. Either this or that type (Union)
    14. Optional type (variable can also be None)
    15. Define type alias
    16. Define complex type alias
    17. Define type for enum and complex dictionary
    18. mypy generics - plain
    19. mypy generics - cannot be any type
    20. mypy generics - limit the types by listing
    21. mypy generics - limit by functionality
    22. Two variables of the same and different types
    23. mypy suggestions
    24. The end
    25. Bloopers
    26. Define the type of variables
    27. Define the return type
    28. Complex types for Python 3.8 and before
    29. Either this or that type for Python before 3.10