Skip to content

Commit

Permalink
Add type hints for MinioAdmin class (#1334)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot authored Nov 19, 2023
1 parent 8e681bb commit 5d4b546
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions minio/minioadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@
class MinioAdmin:
"""Client to perform MinIO administration operations."""

def __init__(self, endpoint,
credentials,
region="",
secure=True,
cert_check=True,
http_client=None):
def __init__(self,
endpoint: str,
credentials: Provider,
region: str = "",
secure: bool = True,
cert_check: bool = True,
http_client: urllib3.poolmanager.PoolManager = None):
url = _parse_url(("https://" if secure else "http://") + endpoint)
if not isinstance(credentials, Provider):
raise ValueError("valid credentials must be provided")
Expand Down

0 comments on commit 5d4b546

Please sign in to comment.