diff --git a/stdlib/3/unittest/mock.pyi b/stdlib/3/unittest/mock.pyi index b47e3f6ba..0c34f72dd 100644 --- a/stdlib/3/unittest/mock.pyi +++ b/stdlib/3/unittest/mock.pyi @@ -193,7 +193,7 @@ class _patch(Generic[_T]): kwargs: Mapping[str, Any], ) -> None: ... def copy(self) -> _patch[_T]: ... - def __call__(self, func: _T) -> _T: ... + def __call__(self, func: _F) -> _F: ... def decorate_class(self, klass: _TT) -> _TT: ... def decorate_callable(self, func: _F) -> _F: ... def get_original(self) -> Tuple[Any, bool]: ... diff --git a/third_party/2and3/mock.pyi b/third_party/2and3/mock.pyi index b47e3f6ba..0c34f72dd 100644 --- a/third_party/2and3/mock.pyi +++ b/third_party/2and3/mock.pyi @@ -193,7 +193,7 @@ class _patch(Generic[_T]): kwargs: Mapping[str, Any], ) -> None: ... def copy(self) -> _patch[_T]: ... - def __call__(self, func: _T) -> _T: ... + def __call__(self, func: _F) -> _F: ... def decorate_class(self, klass: _TT) -> _TT: ... def decorate_callable(self, func: _F) -> _F: ... def get_original(self) -> Tuple[Any, bool]: ...