Changes between Version 1 and Version 2 of Ticket #28695
- Timestamp:
- Oct 12, 2017, 4:52:05 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28695
- Property Has patch set
- Property Triage Stage Unreviewed → Accepted
- Property Summary Make ModelBase.__new__ pass **kwargs to type.__new__ → Allow models to use __init_subclass__
- Property Type Bug → Cleanup/optimization
-
Ticket #28695 – Description
v1 v2 1 ModelBase must pass kwargs to `type.__new__` in order to enable `__init_subclass__` in python 3.6 (see https://www.python.org/dev/peps/pep-0487/).1 Per [https://www.python.org/dev/peps/pep-0487/ PEP 0487], `ModelBase` must pass kwargs to `type.__new__` in order to enable `__init_subclass__` in Python 3.6.