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

Method isfile

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

Source from the content-addressed store, hash-verified

182 return results
183
184 def isfile(self, path: str) -> bool:
185 st = self.stat_or_none(path)
186 if st is None:
187 return False
188 return stat.S_ISREG(st.st_mode)
189
190 def isfile_case(self, path: str, prefix: str) -> bool:
191 """Return whether path exists and is a file.

Callers 15

isfile_caseMethod · 0.95
_find_moduleMethod · 0.45
find_gitignoresFunction · 0.45
default_lib_pathFunction · 0.45
load_stdlib_py_versionsFunction · 0.45
__init__Method · 0.45
closeMethod · 0.45
load_plugins_from_configFunction · 0.45

Calls 1

stat_or_noneMethod · 0.95