Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions s3path/current_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self, *args):
self._load_parts()

@classmethod
def from_uri(cls, uri: str) -> PureS3Path:
def from_uri(cls, uri: str) -> Self:
"""
from_uri class method create a class instance from url

Expand All @@ -88,7 +88,7 @@ def from_uri(cls, uri: str) -> PureS3Path:
return cls(unquoted_uri[4:])

@classmethod
def from_bucket_key(cls, bucket: str | PathLike, key: str | PathLike) -> PureS3Path:
def from_bucket_key(cls, bucket: str | PathLike, key: str | PathLike) -> Self:
"""
from_bucket_key class method create a class instance from bucket, key pair's

Expand Down