Skip to content

Commit

Permalink
add typing for api remove_object (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 authored Nov 22, 2023
1 parent 8dce506 commit 65fc322
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion minio/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1911,7 +1911,12 @@ def stat_object(self, bucket_name, object_name, ssec=None, version_id=None,
version_id=response.headers.get("x-amz-version-id"),
)

def remove_object(self, bucket_name, object_name, version_id=None):
def remove_object(
self,
bucket_name: str,
object_name: str,
version_id: str | None = None
) -> None:
"""
Remove an object.
Expand Down

0 comments on commit 65fc322

Please sign in to comment.