Vladimir

18%
Flag icon
Prior to Python 3.9, the built-in collections did not support generic type notation. As a temporary workaround, there are corresponding collection types in the typing module. If you need a parameterized list type hint in Python 3.8 or earlier, you must import the List type from typing and use it: List[str].
Fluent Python: Clear, Concise, and Effective Programming
Rate this book
Clear rating
Open Preview