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

Method samefile

mypy/fscache.py:297–302  ·  view source on GitHub ↗
(self, f1: str, f2: str)

Source from the content-addressed store, hash-verified

295 return self.hash_cache[path]
296
297 def samefile(self, f1: str, f2: str) -> bool:
298 s1 = self.stat_or_none(f1)
299 s2 = self.stat_or_none(f2)
300 if s1 is None or s2 is None:
301 return False
302 return os.path.samestat(s1, s2)
303
304
305def copy_os_error(e: OSError) -> OSError:

Callers 2

get_revealed_typeFunction · 0.80

Calls 1

stat_or_noneMethod · 0.95

Tested by

no test coverage detected