You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
typing.Generic does not correctly call super().__init_subclass__ #77388
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2018-04-04.16:55:29.967>created_at=<Date2018-04-02.22:01:55.103>labels= ['3.7', 'type-bug', 'library']
title='typing.Generic does not correctly call super().__init_subclass__'updated_at=<Date2018-04-04.16:55:29.966>user='https://github.com/wrmsr'
Activity
wrmsr commentedon Apr 2, 2018
Per the docs ( https://docs.python.org/3/reference/datamodel.html#object.\_\_init_subclass__ ) this should be chain-calling super but currently doesn't, and thus breaks base classes listed after it which depend on this functionality. Attached a test for a real-world usecase of mine. Originally noted in https://bugs.python.org/issue32162? but on a new ticket as requested. Thanks :)