Skip to content

Commit 796a689

Browse files
mock: Fix unconstrained TypeVar (#7945)
The first overload covers the case where `new` is not given. Part of #7928
1 parent 070e6c2 commit 796a689

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stubs/mock/mock/mock.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ class _patcher:
230230
self,
231231
target: Any,
232232
attribute: str,
233-
new: _T = ...,
233+
new: _T,
234234
spec: Any | None = ...,
235235
create: bool = ...,
236236
spec_set: Any | None = ...,

0 commit comments

Comments
 (0)