We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 606e197 commit 194daa2Copy full SHA for 194daa2
src/pytest_mock/plugin.py
@@ -286,6 +286,20 @@ def __call__(
286
) -> _T:
287
...
288
289
+ @overload
290
+ def __call__(
291
+ self,
292
+ target: str,
293
+ new: None,
294
+ spec: Optional[builtins.object],
295
+ create: bool,
296
+ spec_set: Optional[builtins.object],
297
+ autospec: Optional[builtins.object],
298
+ new_callable: Callable[[], _T],
299
+ **kwargs: Any
300
+ ) -> _T:
301
+ ...
302
+
303
@overload
304
def __call__(
305
self,
@@ -295,7 +309,8 @@ def __call__(
309
create: bool = ...,
310
spec_set: Optional[builtins.object] = ...,
311
autospec: Optional[builtins.object] = ...,
- new_callable: Callable[[], _T] = ...,
312
+ *,
313
314
**kwargs: Any
315
316
0 commit comments