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

Method _find_hook

mypy/plugin.py:923–928  ·  view source on GitHub ↗
(self, lookup: Callable[[Plugin], T])

Source from the content-addressed store, hash-verified

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:
925 hook = lookup(plugin)
926 if hook is not None:
927 return hook
928 return None

Callers 8

get_function_hookMethod · 0.95
get_metaclass_hookMethod · 0.95
get_base_class_hookMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected