@@ -861,13 +861,13 @@ if sys.version_info >= (3, 9):
861861 def get_type_hints (
862862 obj : _get_type_hints_obj_allowed_types ,
863863 globalns : dict [str , Any ] | None = None ,
864- localns : dict [str , Any ] | None = None ,
864+ localns : Mapping [str , Any ] | None = None ,
865865 include_extras : bool = False ,
866866 ) -> dict [str , Any ]: ...
867867
868868else :
869869 def get_type_hints (
870- obj : _get_type_hints_obj_allowed_types , globalns : dict [str , Any ] | None = None , localns : dict [str , Any ] | None = None
870+ obj : _get_type_hints_obj_allowed_types , globalns : dict [str , Any ] | None = None , localns : Mapping [str , Any ] | None = None
871871 ) -> dict [str , Any ]: ...
872872
873873def get_args (tp : Any ) -> tuple [Any , ...]: ...
@@ -995,13 +995,13 @@ class ForwardRef:
995995 "that references a PEP 695 type parameter. It will be disallowed in Python 3.15."
996996 )
997997 def _evaluate (
998- self , globalns : dict [str , Any ] | None , localns : dict [str , Any ] | None , * , recursive_guard : frozenset [str ]
998+ self , globalns : dict [str , Any ] | None , localns : Mapping [str , Any ] | None , * , recursive_guard : frozenset [str ]
999999 ) -> Any | None : ...
10001000 @overload
10011001 def _evaluate (
10021002 self ,
10031003 globalns : dict [str , Any ] | None ,
1004- localns : dict [str , Any ] | None ,
1004+ localns : Mapping [str , Any ] | None ,
10051005 type_params : tuple [TypeVar | ParamSpec | TypeVarTuple , ...],
10061006 * ,
10071007 recursive_guard : frozenset [str ],
@@ -1010,17 +1010,17 @@ class ForwardRef:
10101010 def _evaluate (
10111011 self ,
10121012 globalns : dict [str , Any ] | None ,
1013- localns : dict [str , Any ] | None ,
1013+ localns : Mapping [str , Any ] | None ,
10141014 type_params : tuple [TypeVar | ParamSpec | TypeVarTuple , ...] | None = None ,
10151015 * ,
10161016 recursive_guard : frozenset [str ],
10171017 ) -> Any | None : ...
10181018 elif sys .version_info >= (3 , 9 ):
10191019 def _evaluate (
1020- self , globalns : dict [str , Any ] | None , localns : dict [str , Any ] | None , recursive_guard : frozenset [str ]
1020+ self , globalns : dict [str , Any ] | None , localns : Mapping [str , Any ] | None , recursive_guard : frozenset [str ]
10211021 ) -> Any | None : ...
10221022 else :
1023- def _evaluate (self , globalns : dict [str , Any ] | None , localns : dict [str , Any ] | None ) -> Any | None : ...
1023+ def _evaluate (self , globalns : dict [str , Any ] | None , localns : Mapping [str , Any ] | None ) -> Any | None : ...
10241024
10251025 def __eq__ (self , other : object ) -> bool : ...
10261026 def __hash__ (self ) -> int : ...
0 commit comments