Skip to content

Commit 8731d07

Browse files
committed
fix Dict
1 parent 6b62ad8 commit 8731d07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

climada/entity/impact_funcs/impact_func_set.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import copy
2525
import logging
2626
from itertools import repeat
27-
from typing import Dict, Iterable, Optional, Union, overload
27+
from typing import Iterable, Optional, Union, overload
2828

2929
import matplotlib.pyplot as plt
3030
import numpy as np
@@ -178,7 +178,7 @@ def remove_func(
178178
@overload
179179
def get_func(
180180
self, haz_type: None = None, fun_id: None = None
181-
) -> Dict[str, Dict[Union[int, str], ImpactFunc]]: ...
181+
) -> dict[str, dict[Union[int, str], ImpactFunc]]: ...
182182

183183
@overload
184184
def get_func(
@@ -196,7 +196,7 @@ def get_func(self, haz_type: str = ..., fun_id: int | str = ...) -> ImpactFunc:
196196
def get_func(
197197
self, haz_type: Optional[str] = None, fun_id: Optional[int | str] = None
198198
) -> Union[
199-
ImpactFunc, list[ImpactFunc], Dict[str, Dict[Union[int, str], ImpactFunc]]
199+
ImpactFunc, list[ImpactFunc], dict[str, dict[Union[int, str], ImpactFunc]]
200200
]:
201201
"""Get ImpactFunc(s) of input hazard type and/or id.
202202
If no input provided, all impact functions are returned.

0 commit comments

Comments
 (0)