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

Method direct_imports

mypy/dmypy_server.py:773–778  ·  view source on GitHub ↗

Return the direct imports of module not included in seen.

(
        self, module: tuple[str, str], graph: mypy.build.Graph
    )

Source from the content-addressed store, hash-verified

771 return changed, new_files
772
773 def direct_imports(
774 self, module: tuple[str, str], graph: mypy.build.Graph
775 ) -> list[BuildSource]:
776 """Return the direct imports of module not included in seen."""
777 state = graph[module[0]]
778 return [BuildSource(graph[dep].path, dep, followed=True) for dep in state.dependencies]
779
780 def find_added_suppressed(
781 self, graph: mypy.build.Graph, seen: set[str], search_paths: SearchPaths

Calls 1

BuildSourceClass · 0.90

Tested by

no test coverage detected