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

Original file line numberDiff line numberDiff line change

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

19681968

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

19691969

initialised correctly.

19701970

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

1971-

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

1971+

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

19721972
19731973

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

19741974

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