Opened 7 years ago
Closed 7 years ago
#28695 closed Cleanup/optimization (fixed)
Allow models to use __init_subclass__
Description (last modified by ) ¶
Per PEP 0487, ModelBase
must pass kwargs to type.__new__
in order to enable __init_subclass__
in Python 3.6.
Change History (3)
comment:1 by , 7 years ago
Description: | modified (diff) |
---|
comment:2 by , 7 years ago
Description: | modified (diff) |
---|---|
Has patch: | set |
Summary: | Make ModelBase.__new__ pass **kwargs to type.__new__ → Allow models to use __init_subclass__ |
Triage Stage: | Unreviewed → Accepted |
Type: | Bug → Cleanup/optimization |
Note:
See TracTickets
for help on using tickets.
PR