diff --git a/hub/catalog_factories/data_models/cost/fuel.py b/hub/catalog_factories/data_models/cost/fuel.py index 974b3db2..82b47477 100644 --- a/hub/catalog_factories/data_models/cost/fuel.py +++ b/hub/catalog_factories/data_models/cost/fuel.py @@ -46,7 +46,7 @@ class Fuel: return self._fixed_power @property - def variable(self) -> Union[(None, None), (float, str)]: + def variable(self) -> Union[tuple[None, None], tuple[float, str]]: """ Get variable costs in given units :return: None, None or float, str diff --git a/hub/catalog_factories/data_models/cost/item_description.py b/hub/catalog_factories/data_models/cost/item_description.py index 42ce94b4..45b24bbb 100644 --- a/hub/catalog_factories/data_models/cost/item_description.py +++ b/hub/catalog_factories/data_models/cost/item_description.py @@ -36,7 +36,7 @@ class ItemDescription: return self._item_type @property - def initial_investment(self) -> Union[(None, None), (float, str)]: + def initial_investment(self) -> Union[tuple[None, None], tuple[float, str]]: """ Get initial investment of the specific item in given units :return: None, None or float, str @@ -44,7 +44,7 @@ class ItemDescription: return self._initial_investment, self._initial_investment_unit @property - def refurbishment(self) -> Union[(None, None), (float, str)]: + def refurbishment(self) -> Union[tuple[None, None], tuple[float, str]]: """ Get refurbishment costs of the specific item in given units :return: None, None or float, str @@ -52,7 +52,7 @@ class ItemDescription: return self._refurbishment, self._refurbishment_unit @property - def reposition(self) -> Union[(None, None), (float, str)]: + def reposition(self) -> Union[tuple[None, None], tuple[float, str]]: """ Get reposition costs of the specific item in given units :return: None, None or float, str