Skip to content

Commit ca5abf0

Browse files
committed
Typeshed cherry-pick: Make type of unitest.mock.Any a subclass of Any (#14708)
1 parent 9d794b5 commit ca5abf0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mypy/typeshed/stdlib/unittest/mock.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@ class MagicProxy(Base):
508508
def create_mock(self) -> Any: ...
509509
def __get__(self, obj: Any, _type: Any | None = None) -> Any: ...
510510

511-
class _ANY:
511+
# See https://github.com/python/typeshed/issues/14701
512+
class _ANY(Any):
512513
def __eq__(self, other: object) -> Literal[True]: ...
513514
def __ne__(self, other: object) -> Literal[False]: ...
514515
__hash__: ClassVar[None] # type: ignore[assignment]

0 commit comments

Comments
 (0)