Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wait, is `List` to be avoided now? I'm behind the times then. I figured it was still the preferred type hint over `list`.


Avoided? Rather, probably personal preference.

But it is outdated since 3.9+ over just `list` . Same for `tuple`, `dict`, and so on)[0].

[0]: https://peps.python.org/pep-0585/




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

Search: