News for hackers. Stuff that matters.
Re:Attrs – the Python library everyone needs (2016) by progval on Saturday December 25, 2021 @05:55AM (#29682187)
FWIW, you can also add type annotations for namedtuples, with a syntax similar to data classes: https://docs.python.org/3/library/typing.html#typing.NamedTu...

You can even type dictionaries this way: https://docs.python.org/3/library/typing.html#typing.TypedDi...

Re:Attrs – the Python library everyone needs (2016) by nsonha on Saturday December 25, 2021 @11:07AM (#29684343)
This is my confusion learning python, just pick a thing for struct will ya :)