Skip to content

Commit

Permalink
[pre-commit.ci] Apply automatic pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 9, 2024
1 parent 0218338 commit b378e94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/_nebari/provider/cloud/google_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def regions() -> Set[str]:

return {region.name for region in response}


@functools.lru_cache()
def instances(region: str) -> Set[str]:
"""Return a set of available compute instances in a region."""
Expand All @@ -65,6 +66,7 @@ def instances(region: str) -> Set[str]:
for instance in instances_client.list(project=project_id, zone=zone.name)
}


@functools.lru_cache()
def kubernetes_versions(region: str) -> List[str]:
"""Return list of available kubernetes supported by cloud provider. Sorted from oldest to latest."""
Expand Down

0 comments on commit b378e94

Please sign in to comment.