mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-23722: Fix docs for future __classcell__ changes. (GH-6999)
This commit is contained in:
parent
63536bd286
commit
8ae8e6af37
2 changed files with 3 additions and 2 deletions
|
@ -1968,7 +1968,7 @@ current call is identified based on the first argument passed to the method.
|
|||
be propagated up to the ``type.__new__`` call in order for the class to be
|
||||
initialised correctly.
|
||||
Failing to do so will result in a :exc:`DeprecationWarning` in Python 3.6,
|
||||
and a :exc:`RuntimeWarning` in the future.
|
||||
and a :exc:`RuntimeError` in Python 3.8.
|
||||
|
||||
When using the default metaclass :class:`type`, or any metaclass that ultimately
|
||||
calls ``type.__new__``, the following additional customisation steps are
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue