class documentation

class RenameMethodsBase(type):

View In Hierarchy

Handles the deprecation paths when renaming a method.

It does the following:
  1. Define the new method if missing and complain about it.
  2. Define the old method if missing.
  3. Complain whenever an old method is called.

See #15363 for more details.

Method __new__ Undocumented
Class Variable renamed​_methods Undocumented
def __new__(cls, name, bases, attrs):

Undocumented

renamed_methods: tuple =

Undocumented