mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
Update unittest.mock to 3.12 (#10650)
And harmonise some annotations between the stdlib `unittest.mock` module and the third-party `mock` backport package. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
@@ -89,7 +89,7 @@ class NonCallableMock(Base, Any):
|
||||
def __new__(
|
||||
cls,
|
||||
spec: list[str] | object | type[object] | None = None,
|
||||
wraps: Incomplete | None = None,
|
||||
wraps: Any | None = None,
|
||||
name: str | None = None,
|
||||
spec_set: list[str] | object | type[object] | None = None,
|
||||
parent: NonCallableMock | None = None,
|
||||
@@ -104,7 +104,7 @@ class NonCallableMock(Base, Any):
|
||||
def __init__(
|
||||
self,
|
||||
spec: list[str] | object | type[object] | None = None,
|
||||
wraps: Incomplete | None = None,
|
||||
wraps: Any | None = None,
|
||||
name: str | None = None,
|
||||
spec_set: list[str] | object | type[object] | None = None,
|
||||
parent: NonCallableMock | None = None,
|
||||
|
||||
Reference in New Issue
Block a user