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

Method get_dynamic_class_hook

mypy/plugin.py:918–921  ·  view source on GitHub ↗
(
        self, fullname: str
    )

Source from the content-addressed store, hash-verified

916 return self._find_hook(lambda plugin: plugin.get_customize_class_mro_hook(fullname))
917
918 def get_dynamic_class_hook(
919 self, fullname: str
920 ) -> Callable[[DynamicClassDefContext], None] | None:
921 return self._find_hook(lambda plugin: plugin.get_dynamic_class_hook(fullname))
922
923 def _find_hook(self, lookup: Callable[[Plugin], T]) -> T | None:
924 for plugin in self._plugins:

Callers

nothing calls this directly

Calls 2

_find_hookMethod · 0.95

Tested by

no test coverage detected