Ben Avrahami <avrahami....@gmail.com> added the comment:
The patch PR blocks out a useful idiom: generic Nametuple >>> class LLNode(NamedTuple, Generic[T]): ... value :T ... next: Optional[LLNode[T]] I put forward that, at the least, NamedTuple should accept do-nothing bases like Generic. ---------- nosy: +avrahami.ben _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36517> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com