Skip to content

Commit

Permalink
remove type hint in classmethod
Browse files Browse the repository at this point in the history
  • Loading branch information
liormizr committed Dec 5, 2023
1 parent a62ed8e commit a0002ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions s3path.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ class PureS3Path(PurePath):
__slots__ = ()

@classmethod
def from_uri(cls, uri: str) -> PureS3Path:
def from_uri(cls, uri: str):
"""
from_uri class method create a class instance from url
Expand Down Expand Up @@ -877,7 +877,7 @@ def key(self) -> str:
return key

@classmethod
def from_bucket_key(cls, bucket: str, key: str) -> PureS3Path:
def from_bucket_key(cls, bucket: str, key: str):
"""
from_bucket_key class method create a class instance from bucket, key pair's
Expand Down Expand Up @@ -1269,7 +1269,7 @@ def __new__(cls, *args, version_id: str):
return self

@classmethod
def from_uri(cls, uri: str, *, version_id: str) -> PureVersionedS3Path:
def from_uri(cls, uri: str, *, version_id: str):
"""
from_uri class method creates a class instance from uri and version id
Expand All @@ -1282,7 +1282,7 @@ def from_uri(cls, uri: str, *, version_id: str) -> PureVersionedS3Path:
return cls(self, version_id=version_id)

@classmethod
def from_bucket_key(cls, bucket: str, key: str, *, version_id: str) -> PureVersionedS3Path:
def from_bucket_key(cls, bucket: str, key: str, *, version_id: str):
"""
from_bucket_key class method creates a class instance from bucket, key and version id
Expand Down

0 comments on commit a0002ef

Please sign in to comment.