Skip to content

Commit

Permalink
Right mypy line
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbull committed Oct 16, 2024
1 parent 8d4aa0b commit c7c2174
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 @@ -934,9 +934,9 @@ def full_match(self, pattern: str, case_sensitive: Optional[bool] = None) -> boo
pattern = pattern[len(self.anchor + self.drive) :]

# remove drive, which is kept on normal dispatch to pathlib
return PurePosixPath(self._no_prefix_no_drive).full_match(
return PurePosixPath(self._no_prefix_no_drive).full_match( # type: ignore[attr-defined]
pattern, case_sensitive=case_sensitive
) # type: ignore[attr-defined]
)

def match(self, path_pattern: str, case_sensitive: Optional[bool] = None) -> bool:
# strip scheme from start of pattern before testing
Expand Down

0 comments on commit c7c2174

Please sign in to comment.