5 ms·
> Iterable is an import away, while list is already at my fingers. `list` might be but `List` isn't. Are you not defining the type of the contents of the list?
by craftkiller 4y ago
> Iterable is an import away, while list is already at my fingers.
`list` might be but `List` isn't. Are you not defining the type of the contents of the list?
- hbrn 4y agotyping.List is deprecated. https://docs.python.org/3/library/typing.html#typing.List https://docs.python.org/3/library/typing.html#typing.List > Deprecated since version 3.9: builtins.list now supports subscripting ([]). See PEP 585 and Generic Alias Type.