Skip to content

Commit f0a7993

Browse files
authored
Fix typo in functools.pyi: _RWapper -> _RWrapper. (#10705)
1 parent fbd7963 commit f0a7993

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

stdlib/functools.pyi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ _S = TypeVar("_S")
3333
_PWrapped = ParamSpec("_PWrapped")
3434
_RWrapped = TypeVar("_RWrapped")
3535
_PWrapper = ParamSpec("_PWrapper")
36-
_RWapper = TypeVar("_RWapper")
36+
_RWrapper = TypeVar("_RWrapper")
3737

3838
@overload
3939
def reduce(function: Callable[[_T, _S], _T], sequence: Iterable[_S], initial: _T) -> _T: ...
@@ -87,23 +87,23 @@ else:
8787
]
8888
WRAPPER_UPDATES: tuple[Literal["__dict__"]]
8989

90-
class _Wrapped(Generic[_PWrapped, _RWrapped, _PWrapper, _RWapper]):
90+
class _Wrapped(Generic[_PWrapped, _RWrapped, _PWrapper, _RWrapper]):
9191
__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: ...
9393
# as with ``Callable``, we'll assume that these attributes exist
9494
__name__: str
9595
__qualname__: str
9696

9797
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]: ...
9999

100100
if sys.version_info >= (3, 12):
101101
def update_wrapper(
102-
wrapper: Callable[_PWrapper, _RWapper],
102+
wrapper: Callable[_PWrapper, _RWrapper],
103103
wrapped: Callable[_PWrapped, _RWrapped],
104104
assigned: Sequence[str] = ("__module__", "__name__", "__qualname__", "__doc__", "__annotations__", "__type_params__"),
105105
updated: Sequence[str] = ("__dict__",),
106-
) -> _Wrapped[_PWrapped, _RWrapped, _PWrapper, _RWapper]: ...
106+
) -> _Wrapped[_PWrapped, _RWrapped, _PWrapper, _RWrapper]: ...
107107
def wraps(
108108
wrapped: Callable[_PWrapped, _RWrapped],
109109
assigned: Sequence[str] = ("__module__", "__name__", "__qualname__", "__doc__", "__annotations__", "__type_params__"),
@@ -112,11 +112,11 @@ if sys.version_info >= (3, 12):
112112

113113
else:
114114
def update_wrapper(
115-
wrapper: Callable[_PWrapper, _RWapper],
115+
wrapper: Callable[_PWrapper, _RWrapper],
116116
wrapped: Callable[_PWrapped, _RWrapped],
117117
assigned: Sequence[str] = ("__module__", "__name__", "__qualname__", "__doc__", "__annotations__"),
118118
updated: Sequence[str] = ("__dict__",),
119-
) -> _Wrapped[_PWrapped, _RWrapped, _PWrapper, _RWapper]: ...
119+
) -> _Wrapped[_PWrapped, _RWrapped, _PWrapper, _RWrapper]: ...
120120
def wraps(
121121
wrapped: Callable[_PWrapped, _RWrapped],
122122
assigned: Sequence[str] = ("__module__", "__name__", "__qualname__", "__doc__", "__annotations__"),

0 commit comments

Comments
 (0)