3 ms·
> a_list = [] # type: List[T] How do you do that with out a comment?
by tobltobs 9y ago
> a_list = [] # type: List[T]
How do you do that with out a comment?
- Osmium 9y ago> a_list: List[T] = []
- umanwizard 9y agoa_list: List[T] = []
- Chickenosaurus 9y agofrom typing import List a_list: List[T] = [] Visit https://docs.python.org/3/library/typing.html https://docs.python.org/3/library/typing.html for more information.