Hacker News new | past | comments | ask | show | jobs | submit login

> 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?




typing.List is deprecated.

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: