[issue45972] typing.NamedTuple with default arguments without type annotations is falsy

Alex Waygood report at bugs.python.org
Fri Dec 3 05:32:54 EST 2021


Alex Waygood <Alex.Waygood at Gmail.com> added the comment:

To me, the fact that NamedTuple uses class attributes to provide field defaults feels like an implementation detail that is only relevant to an unusual edge case.

Where do you think the documentation should be improved, and what is your suggested wording? :)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45972>
_______________________________________


More information about the Python-bugs-list mailing list