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

2022-03-09 Thread Julius Park
Julius Park 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 <ht

[issue40185] Refactor typing.NamedTuple

2022-03-08 Thread Julius Park
Change by Julius Park : -- nosy: +juliusgeo nosy_count: 5.0 -> 6.0 pull_requests: +29885 pull_request: https://github.com/python/cpython/pull/31779 ___ Python tracker <https://bugs.python.org/issu

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

2022-03-08 Thread Julius Park
Change by Julius Park : -- nosy: +juliusgeo nosy_count: 14.0 -> 15.0 pull_requests: +29884 pull_request: https://github.com/python/cpython/pull/31779 ___ Python tracker <https://bugs.python.org/issu