mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
mock: Fix unconstrained TypeVar (#7945)
The first overload covers the case where `new` is not given. Part of #7928
This commit is contained in:
@@ -230,7 +230,7 @@ class _patcher:
|
||||
self,
|
||||
target: Any,
|
||||
attribute: str,
|
||||
new: _T = ...,
|
||||
new: _T,
|
||||
spec: Any | None = ...,
|
||||
create: bool = ...,
|
||||
spec_set: Any | None = ...,
|
||||
|
||||
Reference in New Issue
Block a user