MCPcopy Index your code
hub / github.com/python/mypy / get_customize_class_mro_hook

Method get_customize_class_mro_hook

mypy/plugin.py:784–792  ·  view source on GitHub ↗

Customize MRO for given classes. The plugin can modify the class MRO _in place_. This method is called with the class full name before its body was semantically analyzed.

(
        self, fullname: str
    )

Source from the content-addressed store, hash-verified

782 return None
783
784 def get_customize_class_mro_hook(
785 self, fullname: str
786 ) -> Callable[[ClassDefContext], None] | None:
787 """Customize MRO for given classes.
788
789 The plugin can modify the class MRO _in place_. This method is called
790 with the class full name before its body was semantically analyzed.
791 """
792 return None
793
794 def get_dynamic_class_hook(
795 self, fullname: str

Callers 2

calculate_class_mroMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected