- 1. Python types at PyWeb 2025.01
- 2. Python types at PyWeb 2025.01
- 2.1. Python types at PyWeb 2025.01
- 2.2. The Answer
- 2.3. Add
- 2.4. Add in function
- 2.5. Shift-left (testing, programming)
- 2.6. Function with type annotation
- 2.7. Use mypy
- 2.8. How add type annotation?
- 2.9. Infer (deduct) the type
- 2.10. Type in unannotated function
- 2.11. Built-in types
- 2.12. Complex types
- 2.13. Either this or that type (Union)
- 2.14. Optional type (variable can also be None)
- 2.15. Define type alias
- 2.16. Define complex type alias
- 2.17. Define type for enum and complex dictionary
- 2.18. mypy generics - plain
- 2.19. mypy generics - cannot be any type
- 2.20. mypy generics - limit the types by listing
- 2.21. mypy generics - limit by functionality
- 2.22. Two variables of the same and different types
- 2.23. mypy suggestions
- 2.24. The end
- 2.25. Bloopers
- 2.26. Define the type of variables
- 2.27. Define the return type
- 2.28. Complex types for Python 3.8 and before
- 2.29. Either this or that type for Python before 3.10