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

Method get_method_hook

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

Source from the content-addressed store, hash-verified

878 return None
879
880 def get_method_hook(self, fullname: str) -> Callable[[MethodContext], Type] | None:
881 # Micro-optimization: Inline iteration over plugins
882 for plugin in self._plugins:
883 hook = plugin.get_method_hook(fullname)
884 if hook is not None:
885 return hook
886 return None
887
888 def get_attribute_hook(self, fullname: str) -> Callable[[AttributeContext], Type] | None:
889 # Micro-optimization: Inline iteration over plugins

Callers

nothing calls this directly

Calls 1

get_method_hookMethod · 0.45

Tested by

no test coverage detected