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

Method get_stat

mypy/build.py:1175–1176  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

1173 return shadow_file if shadow_file else path
1174
1175 def get_stat(self, path: str) -> os.stat_result | None:
1176 return self.fscache.stat_or_none(self.maybe_swap_for_shadow_path(path))
1177
1178 def getmtime(self, path: str) -> int:
1179 """Return a file's mtime; but 0 in bazel mode.

Callers 2

validate_metaFunction · 0.80
write_cacheFunction · 0.80

Calls 2

stat_or_noneMethod · 0.80

Tested by

no test coverage detected