MCPcopy
hub / github.com/python/mypy / isdir

Method isdir

mypy/fscache.py:250–254  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

248 return res
249
250 def isdir(self, path: str) -> bool:
251 st = self.stat_or_none(path)
252 if st is None:
253 return False
254 return stat.S_ISDIR(st.st_mode)
255
256 def exists(self, path: str, real_only: bool = False) -> bool:
257 st = self.stat_or_none(path)

Callers 15

find_lib_path_dirsMethod · 0.45
_update_ns_ancestorsMethod · 0.45
_find_moduleMethod · 0.45
matches_excludeFunction · 0.45
matches_gitignoreFunction · 0.45
default_lib_pathFunction · 0.45
build_innerFunction · 0.45
new_stateMethod · 0.45

Calls 1

stat_or_noneMethod · 0.95

Tested by 1

run_case_innerMethod · 0.36