2424import copy
2525import logging
2626from itertools import repeat
27- from typing import Dict , Iterable , Optional , Union , overload
27+ from typing import Iterable , Optional , Union , overload
2828
2929import matplotlib .pyplot as plt
3030import 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