Ilya Kulakov <kulakov.i...@gmail.com> added the comment: That's a better workaround:
class X(typing.Generic[T]): def __init_subclass__(cls, **kwargs): super(typing.GenericMeta, cls).__setattr__('_gorg', cls) super().__init_subclass__(**kwargs) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32162> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com