Skip to content

Commit 2b035a0

Browse files
committed
Remaining error in hint
1 parent 703e74f commit 2b035a0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

climada/entity/impact_funcs/impact_func_set.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,13 @@ def get_func(self, haz_type: None, fun_id: int | str) -> list[ImpactFunc]: ...
187187
@overload
188188
def get_func(
189189
self, haz_type: None = None, fun_id: None = None
190-
) -> Dict[str, Dict[int, ImpactFunc]]: ...
190+
) -> Dict[str, Dict[Union[int, str], ImpactFunc]]: ...
191191

192192
def get_func(
193193
self, haz_type: Optional[str] = None, fun_id: Optional[int | str] = None
194-
) -> Union[ImpactFunc, list[ImpactFunc], Dict[str, Dict[int, ImpactFunc]]]:
194+
) -> Union[
195+
ImpactFunc, list[ImpactFunc], Dict[str, Dict[Union[int, str], ImpactFunc]]
196+
]:
195197
"""Get ImpactFunc(s) of input hazard type and/or id.
196198
If no input provided, all impact functions are returned.
197199

0 commit comments

Comments
 (0)