(self, other)
| 11 | |
| 12 | class _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] |
no test coverage detected