From 96e385c4c032f3ce6c0d6c4b8c1c7097f10020dd Mon Sep 17 00:00:00 2001 From: Matteo Voges Date: Wed, 17 Jan 2024 15:53:06 +0100 Subject: [PATCH] fix: remove another complicated type in signature --- kapitan/inventory/inv_reclass.py | 2 +- kapitan/inventory/inventory.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kapitan/inventory/inv_reclass.py b/kapitan/inventory/inv_reclass.py index 1ef113d24..f14bac280 100644 --- a/kapitan/inventory/inv_reclass.py +++ b/kapitan/inventory/inv_reclass.py @@ -50,7 +50,7 @@ def render_targets(self, targets: list = None, ignore_class_notfound: bool = Fal logger.error(f"Inventory reclass error: {e.message}") raise InventoryError(e.message) - def get_targets(self, target_names: list[str]) -> dict: + def get_targets(self, target_names: list) -> dict: for target_name in target_names: target = self.targets.get(target_name) diff --git a/kapitan/inventory/inventory.py b/kapitan/inventory/inventory.py index 6d253eeef..78ba50308 100644 --- a/kapitan/inventory/inventory.py +++ b/kapitan/inventory/inventory.py @@ -91,7 +91,7 @@ def get_target(self, target_name: str) -> dict: return self.get_targets([target_name])[target_name] @abstractmethod - def get_targets(self, target_names: list[str]) -> dict: + def get_targets(self, target_names: list) -> dict: """ helper function to get parameters for multiple targets """