From b473c65a197c81498369a698cc303024b5023449 Mon Sep 17 00:00:00 2001 From: Samuel <40698384+samuel-esp@users.noreply.github.com> Date: Tue, 19 Nov 2024 19:57:45 +0100 Subject: [PATCH] added type to api variable inside autoscale_resource and autoscale_resources functions --- kube_downscaler/scaler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kube_downscaler/scaler.py b/kube_downscaler/scaler.py index c0a96c1..10b576c 100644 --- a/kube_downscaler/scaler.py +++ b/kube_downscaler/scaler.py @@ -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 @@ -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, @@ -1062,7 +1062,7 @@ def autoscale_resource( def autoscale_resources( - api, + api: HTTPClient, kind, namespace: FrozenSet[Pattern], exclude_namespaces: FrozenSet[Pattern],