MCPcopy
hub / github.com/python/mypy / get_class_decorator_hook_2

Method get_class_decorator_hook_2

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

Source from the content-addressed store, hash-verified

900 return self._find_hook(lambda plugin: plugin.get_class_decorator_hook(fullname))
901
902 def get_class_decorator_hook_2(
903 self, fullname: str
904 ) -> Callable[[ClassDefContext], bool] | None:
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))

Callers

nothing calls this directly

Calls 2

_find_hookMethod · 0.95

Tested by

no test coverage detected