Changes between Version 1 and Version 2 of Ticket #28695


Ignore:
Timestamp:
Oct 12, 2017, 4:52:05 PM (7 years ago)
Author:
Tim Graham
Comment:

PR

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28695

    • Property Has patch set
    • Property Triage Stage UnreviewedAccepted
    • Property Summary Make ModelBase.__new__ pass **kwargs to type.__new__Allow models to use __init_subclass__
    • Property Type BugCleanup/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/).
     1Per [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.
Back to Top