Message407571
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? |
|
Date |
User |
Action |
Args |
2021-12-03 08:58:36 | Spencer Brown | set | recipients:
+ Spencer Brown, gvanrossum, kj, AlexWaygood, emontnemery |
2021-12-03 08:58:36 | Spencer Brown | set | messageid: <1638521916.75.0.199168284891.issue45972@roundup.psfhosted.org> |
2021-12-03 08:58:36 | Spencer Brown | link | issue45972 messages |
2021-12-03 08:58:36 | Spencer Brown | create | |
|