Skip to content

Commit

Permalink
Add a clarification comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Gilthans committed Jul 24, 2023
1 parent f0519e1 commit 998a02b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cloudpathlib/cloudpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ def with_stem(self, stem: str) -> Self:
try:
return self._dispatch_to_path("with_stem", stem)
except AttributeError:
# with_stem was only added in python 3.9, so we fallback for compatibility
return self.with_name(stem + self.suffix)

def with_name(self, name: str) -> Self:
Expand Down

0 comments on commit 998a02b

Please sign in to comment.