[issue45972] typing.NamedTuple with default arguments without type annotations is falsy
Erik Montnemery
report at bugs.python.org
Fri Dec 3 05:20:56 EST 2021
Erik Montnemery <erik at montnemery.com> added the comment:
I think elaborating in the documentation that only annotated attributes make it to the underlying namedtuple() would be helpful, it's not obvious that they are instead just class attributes.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45972>
_______________________________________
More information about the Python-bugs-list
mailing list