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

Method get_class_attribute_hook

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

Source from the content-addressed store, hash-verified

894 return None
895
896 def get_class_attribute_hook(self, fullname: str) -> Callable[[AttributeContext], Type] | None:
897 return self._find_hook(lambda plugin: plugin.get_class_attribute_hook(fullname))
898
899 def get_class_decorator_hook(self, fullname: str) -> Callable[[ClassDefContext], None] | None:
900 return self._find_hook(lambda plugin: plugin.get_class_decorator_hook(fullname))

Callers

nothing calls this directly

Calls 2

_find_hookMethod · 0.95

Tested by

no test coverage detected