Skip to content

Commit

Permalink
Add "CloudPath" to possible cloud_path types (#342) (#343)
Browse files Browse the repository at this point in the history
* Add "CloudPath" to possible cloud_path types (#342)

* Add to changelog

---------

Co-authored-by: Karol Zlot <[email protected]>
  • Loading branch information
pjbull and karolzlot authored Jul 22, 2023
1 parent 6b4afe9 commit b7d394f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# cloudpathlib Changelog

## UNRELEASED
- Add "CloudPath" as return type on `__init__` for mypy issues. ([Issue #179](https://github.com/drivendataorg/cloudpathlib/issues/179), [PR #342](https://github.com/drivendataorg/cloudpathlib/pull/342))

## v0.15.1 (2023-07-12)

- Compatibility with pydantic >= 2.0.0. ([PR #349](https://github.com/drivendataorg/cloudpathlib/pull/349))
Expand Down
2 changes: 1 addition & 1 deletion cloudpathlib/cloudpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ class CloudPath(metaclass=CloudPathMeta):

def __init__(
self,
cloud_path: Union[str, Self],
cloud_path: Union[str, Self, "CloudPath"],
client: Optional["Client"] = None,
) -> None:
# handle if local file gets opened. must be set at the top of the method in case any code
Expand Down

0 comments on commit b7d394f

Please sign in to comment.