Skip to content

Commit a12d2ea

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5a99b50 commit a12d2ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kr8s/_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class Api:
5555
_instances: dict[str, weakref.WeakValueDictionary] = {}
5656
# Cache api-resources for 6 hours because kubectl does
5757
# https://github.com/kubernetes/cli-runtime/blob/980bedf450ab21617b33d68331786942227fe93a/pkg/genericclioptions/config_flags.go#L297
58-
_cached_api_resources: TTLCache[None, list[dict]] = TTLCache(1, 60 * 60 * 6)
58+
_cached_api_resources: TTLCache[None, list[dict]] = TTLCache(1, 60 * 60 * 6)
5959

6060
def __init__(self, **kwargs) -> None:
6161
if not kwargs.pop("bypass_factory", False):
@@ -663,7 +663,7 @@ async def async_api_resources(self) -> list[dict]:
663663
if self._cached_api_resources.get(None):
664664
return self._cached_api_resources[None]
665665
else:
666-
self._cached_api_resources[None] = await self.async_api_resources_uncached()
666+
self._cached_api_resources[None] = await self.async_api_resources_uncached()
667667

668668
return self._cached_api_resources[None]
669669

0 commit comments

Comments
 (0)