diff --git a/stdlib/unittest/mock.pyi b/stdlib/unittest/mock.pyi index aca331a4c..400bdaac3 100644 --- a/stdlib/unittest/mock.pyi +++ b/stdlib/unittest/mock.pyi @@ -297,7 +297,7 @@ class _patcher: @overload def __call__( # type: ignore[misc] self, - target: Any, + target: str, new: _T, spec: Any | None = ..., create: bool = ..., @@ -309,7 +309,7 @@ class _patcher: @overload def __call__( self, - target: Any, + target: str, *, spec: Any | None = ..., create: bool = ...,