MCPcopy Create free account
hub / github.com/python/mypy / crawl_up_dir

Method crawl_up_dir

mypy/find_sources.py:171–172  ·  view source on GitHub ↗
(self, dir: str)

Source from the content-addressed store, hash-verified

169 return module, base_dir
170
171 def crawl_up_dir(self, dir: str) -> tuple[str, str]:
172 return self._crawl_up_helper(dir) or ("", dir)
173
174 @functools.lru_cache # noqa: B019
175 def _crawl_up_helper(self, dir: str) -> tuple[str, str] | None:

Callers 2

crawl_upMethod · 0.95
_crawl_up_helperMethod · 0.95

Calls 1

_crawl_up_helperMethod · 0.95

Tested by

no test coverage detected