Skip to content

Commit

Permalink
ignore type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbull committed Sep 22, 2023
1 parent 41c211d commit 236af45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudpathlib/cloudpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
from typing_extensions import Self

if sys.version_info >= (3, 12):
from pathlib import posixpath as _posix_flavour
from pathlib import posixpath as _posix_flavour # type: ignore[attr-defined]
else:
from pathlib import _posix_flavour

Expand Down Expand Up @@ -730,7 +730,7 @@ def relative_to(self, other: Self, walk_up: bool = False) -> PurePosixPath:
raise ValueError(
f"{self} is a {self.cloud_prefix} path, but {other} is a {other.cloud_prefix} path"
)
return self._path.relative_to(other._path, walk_up=walk_up)
return self._path.relative_to(other._path, walk_up=walk_up) # type: ignore[call-arg]

def is_relative_to(self, other: Self) -> bool:
try:
Expand Down

0 comments on commit 236af45

Please sign in to comment.