MCPcopy
hub / github.com/treeverse/dvc / overlaps

Method overlaps

dvc/testing/path_info.py:13–18  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

11
12class _BasePath:
13 def overlaps(self, other):
14 if isinstance(other, (str, bytes)):
15 other = self.__class__(other) # type: ignore[call-arg]
16 elif self.__class__ != other.__class__:
17 return False
18 return self.isin_or_eq(other) or other.isin(self)
19
20 def isin_or_eq(self, other):
21 return self == other or self.isin(other) # type: ignore[attr-defined]

Callers 1

_check_blockersFunction · 0.80

Calls 2

isin_or_eqMethod · 0.95
isinMethod · 0.45

Tested by

no test coverage detected