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

Method get_metaclass_hook

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

Source from the content-addressed store, hash-verified

905 return self._find_hook(lambda plugin: plugin.get_class_decorator_hook_2(fullname))
906
907 def get_metaclass_hook(self, fullname: str) -> Callable[[ClassDefContext], None] | None:
908 return self._find_hook(lambda plugin: plugin.get_metaclass_hook(fullname))
909
910 def get_base_class_hook(self, fullname: str) -> Callable[[ClassDefContext], None] | None:
911 return self._find_hook(lambda plugin: plugin.get_base_class_hook(fullname))

Callers

nothing calls this directly

Calls 2

_find_hookMethod · 0.95
get_metaclass_hookMethod · 0.45

Tested by

no test coverage detected