@@ -3,13 +3,14 @@ from collections.abc import Awaitable, Callable, Coroutine, Iterable, Mapping, S
33from contextlib import _GeneratorContextManager
44from types import TracebackType
55from typing import Any , Generic , TypeVar , overload
6- from typing_extensions import Final , Literal , Self , TypeAlias
6+ from typing_extensions import Final , Literal , ParamSpec , Self , TypeAlias
77
88_T = TypeVar ("_T" )
99_TT = TypeVar ("_TT" , bound = type [Any ])
1010_R = TypeVar ("_R" )
1111_F = TypeVar ("_F" , bound = Callable [..., Any ])
1212_AF = TypeVar ("_AF" , bound = Callable [..., Coroutine [Any , Any , Any ]])
13+ _P = ParamSpec ("_P" )
1314
1415if sys .version_info >= (3 , 8 ):
1516 __all__ = (
@@ -234,7 +235,7 @@ class _patch(Generic[_T]):
234235 @overload
235236 def __call__ (self , func : _TT ) -> _TT : ...
236237 @overload
237- def __call__ (self , func : Callable [... , _R ]) -> Callable [... , _R ]: ...
238+ def __call__ (self , func : Callable [_P , _R ]) -> Callable [_P , _R ]: ...
238239 if sys .version_info >= (3 , 8 ):
239240 def decoration_helper (
240241 self , patched : _patch [Any ], args : Sequence [Any ], keywargs : Any
0 commit comments