@@ -33,7 +33,7 @@ _S = TypeVar("_S")
33
33
_PWrapped = ParamSpec ("_PWrapped" )
34
34
_RWrapped = TypeVar ("_RWrapped" )
35
35
_PWrapper = ParamSpec ("_PWrapper" )
36
- _RWapper = TypeVar ("_RWapper " )
36
+ _RWrapper = TypeVar ("_RWrapper " )
37
37
38
38
@overload
39
39
def reduce (function : Callable [[_T , _S ], _T ], sequence : Iterable [_S ], initial : _T ) -> _T : ...
@@ -87,23 +87,23 @@ else:
87
87
]
88
88
WRAPPER_UPDATES : tuple [Literal ["__dict__" ]]
89
89
90
- class _Wrapped (Generic [_PWrapped , _RWrapped , _PWrapper , _RWapper ]):
90
+ class _Wrapped (Generic [_PWrapped , _RWrapped , _PWrapper , _RWrapper ]):
91
91
__wrapped__ : Callable [_PWrapped , _RWrapped ]
92
- def __call__ (self , * args : _PWrapper .args , ** kwargs : _PWrapper .kwargs ) -> _RWapper : ...
92
+ def __call__ (self , * args : _PWrapper .args , ** kwargs : _PWrapper .kwargs ) -> _RWrapper : ...
93
93
# as with ``Callable``, we'll assume that these attributes exist
94
94
__name__ : str
95
95
__qualname__ : str
96
96
97
97
class _Wrapper (Generic [_PWrapped , _RWrapped ]):
98
- def __call__ (self , f : Callable [_PWrapper , _RWapper ]) -> _Wrapped [_PWrapped , _RWrapped , _PWrapper , _RWapper ]: ...
98
+ def __call__ (self , f : Callable [_PWrapper , _RWrapper ]) -> _Wrapped [_PWrapped , _RWrapped , _PWrapper , _RWrapper ]: ...
99
99
100
100
if sys .version_info >= (3 , 12 ):
101
101
def update_wrapper (
102
- wrapper : Callable [_PWrapper , _RWapper ],
102
+ wrapper : Callable [_PWrapper , _RWrapper ],
103
103
wrapped : Callable [_PWrapped , _RWrapped ],
104
104
assigned : Sequence [str ] = ("__module__" , "__name__" , "__qualname__" , "__doc__" , "__annotations__" , "__type_params__" ),
105
105
updated : Sequence [str ] = ("__dict__" ,),
106
- ) -> _Wrapped [_PWrapped , _RWrapped , _PWrapper , _RWapper ]: ...
106
+ ) -> _Wrapped [_PWrapped , _RWrapped , _PWrapper , _RWrapper ]: ...
107
107
def wraps (
108
108
wrapped : Callable [_PWrapped , _RWrapped ],
109
109
assigned : Sequence [str ] = ("__module__" , "__name__" , "__qualname__" , "__doc__" , "__annotations__" , "__type_params__" ),
@@ -112,11 +112,11 @@ if sys.version_info >= (3, 12):
112
112
113
113
else :
114
114
def update_wrapper (
115
- wrapper : Callable [_PWrapper , _RWapper ],
115
+ wrapper : Callable [_PWrapper , _RWrapper ],
116
116
wrapped : Callable [_PWrapped , _RWrapped ],
117
117
assigned : Sequence [str ] = ("__module__" , "__name__" , "__qualname__" , "__doc__" , "__annotations__" ),
118
118
updated : Sequence [str ] = ("__dict__" ,),
119
- ) -> _Wrapped [_PWrapped , _RWrapped , _PWrapper , _RWapper ]: ...
119
+ ) -> _Wrapped [_PWrapped , _RWrapped , _PWrapper , _RWrapper ]: ...
120
120
def wraps (
121
121
wrapped : Callable [_PWrapped , _RWrapped ],
122
122
assigned : Sequence [str ] = ("__module__" , "__name__" , "__qualname__" , "__doc__" , "__annotations__" ),
0 commit comments