Spencer Brown <spencer...@live.com> added the comment:

What's happening is that typing.NamedTuple ignores non-annotated attributes 
entirely when computing the names it passes along to namedtuple(), so here "a" 
is just a class attribute. You're accessing it from there, but the tuple itself 
is entirely empty. Perhaps it should error out if no names at all are found?

----------
nosy: +Spencer Brown

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45972>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to