Skip to content

Commit

Permalink
Update 'config' typehint for lightkube.core.async_client.AsyncClient
Browse files Browse the repository at this point in the history
  • Loading branch information
benfiola authored and gtsystem committed Jun 30, 2024
1 parent 971dfa1 commit e77c6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightkube/core/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AsyncClient:
* **trust_env** - Ignore environment variables, also passed through to httpx.AsyncClient trust_env. See its
docs for further description. If False, empty config will be derived from_file(DEFAULT_KUBECONFIG)
"""
def __init__(self, config: Union[SingleConfig, KubeConfig] = None, namespace: str = None,
def __init__(self, config: Union[SingleConfig, KubeConfig, None] = None, namespace: str = None,
timeout: httpx.Timeout = None, lazy=True, field_manager: str = None, trust_env: bool = True):
self._client = GenericAsyncClient(config, namespace=namespace, timeout=timeout, lazy=lazy,
field_manager=field_manager, trust_env=trust_env)
Expand Down

0 comments on commit e77c6bb

Please sign in to comment.