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:
Nikita SobolevandAlex Waygood authored and GitHub committed 2023-09-02 15:03:39 +01:00
1 parent 454438e4db
commit f0ba5ba2a2
3 files changed
+21 -4

No files matched your search

+2 -2
View File
@@ -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,