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

Method get_additional_deps

mypy/plugin.py:843–847  ·  view source on GitHub ↗
(self, file: MypyFile)

Source from the content-addressed store, hash-verified

841 return config_data if any(x is not None for x in config_data) else None
842
843 def get_additional_deps(self, file: MypyFile) -> list[tuple[int, str, int]]:
844 deps = []
845 for plugin in self._plugins:
846 deps.extend(plugin.get_additional_deps(file))
847 return deps
848
849 def get_type_analyze_hook(self, fullname: str) -> Callable[[AnalyzeTypeContext], Type] | None:
850 # Micro-optimization: Inline iteration over plugins

Callers

nothing calls this directly

Calls 2

extendMethod · 0.80
get_additional_depsMethod · 0.45

Tested by

no test coverage detected