bpo-23722: Fix docs for future __classcell__ changes. (GH-6999) · python/cpython@10a122c

Original file line numberDiff line numberDiff line change

@@ -1887,7 +1887,7 @@ current call is identified based on the first argument passed to the method.

18871887

be propagated up to the ``type.__new__`` call in order for the class to be

18881888

initialised correctly.

18891889

Failing to do so will result in a :exc:`DeprecationWarning` in Python 3.6,

1890-

and a :exc:`RuntimeWarning` in the future.

1890+

and a :exc:`RuntimeError` in Python 3.8.

18911891
18921892

When using the default metaclass :class:`type`, or any metaclass that ultimately

18931893

calls ``type.__new__``, the following additional customisation steps are