forked from s_ranjbar/city_retrofit
solved bug in typing
This commit is contained in:
parent
6a402485c5
commit
aa0952969f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user