bpo-23722: Fix docs for future classcell changes. (GH-6999) · python/cpython@8ae8e6a (original) (raw)

Original file line number Diff line number Diff line change
@@ -1968,7 +1968,7 @@ current call is identified based on the first argument passed to the method.
1968 1968 be propagated up to the ``type.__new__`` call in order for the class to be
1969 1969 initialised correctly.
1970 1970 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.
1972 1972
1973 1973 When using the default metaclass :class:`type`, or any metaclass that ultimately
1974 1974 calls ``type.__new__``, the following additional customisation steps are