[issue43923] Can't create generic NamedTuple as of py3.9

Julius Park report at bugs.python.org
Wed Mar 9 16:20:50 EST 2022


Julius Park <juliusgeo at gmail.com> added the comment:

What about Protocol? It is possible to create a dataclass that is a protocol, so it would be nicer from a symmetry perspective to allow it on both dataclasses and NamedTuples.

----------

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


More information about the Python-bugs-list mailing list