@@ -861,13 +861,13 @@ if sys.version_info >= (3, 9):
861
861
def get_type_hints (
862
862
obj : _get_type_hints_obj_allowed_types ,
863
863
globalns : dict [str , Any ] | None = None ,
864
- localns : dict [str , Any ] | None = None ,
864
+ localns : Mapping [str , Any ] | None = None ,
865
865
include_extras : bool = False ,
866
866
) -> dict [str , Any ]: ...
867
867
868
868
else :
869
869
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
871
871
) -> dict [str , Any ]: ...
872
872
873
873
def get_args (tp : Any ) -> tuple [Any , ...]: ...
@@ -995,13 +995,13 @@ class ForwardRef:
995
995
"that references a PEP 695 type parameter. It will be disallowed in Python 3.15."
996
996
)
997
997
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 ]
999
999
) -> Any | None : ...
1000
1000
@overload
1001
1001
def _evaluate (
1002
1002
self ,
1003
1003
globalns : dict [str , Any ] | None ,
1004
- localns : dict [str , Any ] | None ,
1004
+ localns : Mapping [str , Any ] | None ,
1005
1005
type_params : tuple [TypeVar | ParamSpec | TypeVarTuple , ...],
1006
1006
* ,
1007
1007
recursive_guard : frozenset [str ],
@@ -1010,17 +1010,17 @@ class ForwardRef:
1010
1010
def _evaluate (
1011
1011
self ,
1012
1012
globalns : dict [str , Any ] | None ,
1013
- localns : dict [str , Any ] | None ,
1013
+ localns : Mapping [str , Any ] | None ,
1014
1014
type_params : tuple [TypeVar | ParamSpec | TypeVarTuple , ...] | None = None ,
1015
1015
* ,
1016
1016
recursive_guard : frozenset [str ],
1017
1017
) -> Any | None : ...
1018
1018
elif sys .version_info >= (3 , 9 ):
1019
1019
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 ]
1021
1021
) -> Any | None : ...
1022
1022
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 : ...
1024
1024
1025
1025
def __eq__ (self , other : object ) -> bool : ...
1026
1026
def __hash__ (self ) -> int : ...
0 commit comments