Skip to content

Commit 04bfaf5

Browse files
Keep typing information after functools.wraps() (#4743)
1 parent 4335fe9 commit 04bfaf5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stdlib/3/functools.pyi

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ WRAPPER_ASSIGNMENTS: Sequence[str]
5656
WRAPPER_UPDATES: Sequence[str]
5757

5858
def update_wrapper(wrapper: _T, wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...) -> _T: ...
59-
def wraps(
60-
wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...
61-
) -> Callable[[_AnyCallable], _AnyCallable]: ...
59+
def wraps(wrapped: _AnyCallable, assigned: Sequence[str] = ..., updated: Sequence[str] = ...) -> Callable[[_T], _T]: ...
6260
def total_ordering(cls: Type[_T]) -> Type[_T]: ...
6361
def cmp_to_key(mycmp: Callable[[_T, _T], int]) -> Callable[[_T], SupportsLessThan]: ...
6462

0 commit comments

Comments
 (0)