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

Function crawl

mypy/test/test_find_sources.py:50–52  ·  view source on GitHub ↗
(finder: SourceFinder, f: str)

Source from the content-addressed store, hash-verified

48
49
50def crawl(finder: SourceFinder, f: str) -> tuple[str, str]:
51 module, base_dir = finder.crawl_up(f)
52 return module, normalise_path(base_dir)
53
54
55def find_sources_in_dir(finder: SourceFinder, f: str) -> list[tuple[str, str | None]]:

Calls 2

normalise_pathFunction · 0.85
crawl_upMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…