diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 792b535d..a94f6d69 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # dependency. Make sure to update flake8-bugbear manually on a regular basis. repos: - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black language_version: python3 diff --git a/kr8s/_api.py b/kr8s/_api.py index 8b375869..3f6be27e 100644 --- a/kr8s/_api.py +++ b/kr8s/_api.py @@ -364,9 +364,9 @@ async def _get( headers = {} if as_object: group, version = as_object.version.split("/") - headers[ - "Accept" - ] = f"application/json;as={as_object.kind};v={version};g={group}" + headers["Accept"] = ( + f"application/json;as={as_object.kind};v={version};g={group}" + ) async with self._get_kind( kind, namespace=namespace, diff --git a/kr8s/asyncio/_helpers.py b/kr8s/asyncio/_helpers.py index 4db6f4c1..a82d19e0 100644 --- a/kr8s/asyncio/_helpers.py +++ b/kr8s/asyncio/_helpers.py @@ -90,7 +90,7 @@ async def watch( ): if api is None: api = await _api(_asyncio=_asyncio) - async for (t, o) in api._watch( + async for t, o in api._watch( kind=kind, namespace=namespace, label_selector=label_selector,