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

Method isdir

mypy/test/test_find_sources.py:23–26  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

21 return path in self.files
22
23 def isdir(self, path: str) -> bool:
24 if not path.endswith(os.sep):
25 path += os.sep
26 return any(f.startswith(path) for f in self.files)
27
28 def listdir(self, path: str) -> list[str]:
29 if not path.endswith(os.sep):

Callers 5

perform_file_operationsFunction · 0.45
pytest_sessionstartFunction · 0.45
collectMethod · 0.45
test_python_cmdlineFunction · 0.45

Calls 3

anyFunction · 0.85
endswithMethod · 0.45
startswithMethod · 0.45

Tested by

no test coverage detected