Skip to content

Commit

Permalink
added type to api variable inside autoscale_resource and autoscale_re…
Browse files Browse the repository at this point in the history
…sources functions
  • Loading branch information
samuel-esp committed Nov 19, 2024
1 parent a3bf892 commit b473c65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kube_downscaler/scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from typing import Pattern

import pykube
from pykube import CronJob
from pykube import CronJob, HTTPClient
from pykube import Deployment
from pykube import HorizontalPodAutoscaler
from pykube import Namespace
Expand Down Expand Up @@ -888,7 +888,7 @@ def autoscale_resource(
forced_downtime: bool,
upscale_target_only: bool,
max_retries_on_conflict: int,
api,
api: HTTPClient,
kind,
dry_run: bool,
now: datetime.datetime,
Expand Down Expand Up @@ -1062,7 +1062,7 @@ def autoscale_resource(


def autoscale_resources(
api,
api: HTTPClient,
kind,
namespace: FrozenSet[Pattern],
exclude_namespaces: FrozenSet[Pattern],
Expand Down

0 comments on commit b473c65

Please sign in to comment.