solved bug in typing

This commit is contained in:
Pilar Monsalvete 2023-03-20 10:07:31 -04:00
parent 6a402485c5
commit aa0952969f
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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