mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-07 20:54:32 +08:00
Make type of unitest.mock.Any a subclass of Any (#14708)
This commit is contained in:
1 parent
b2777f4cbb
commit
0d100b9110
2 files changed
+30
-2
No files matched your search
@@ -508,7 +508,8 @@ class MagicProxy(Base):
|
||||
def create_mock(self) -> Any: ...
|
||||
def __get__(self, obj: Any, _type: Any | None = None) -> Any: ...
|
||||
|
||||
class _ANY:
|
||||
# See https://github.com/python/typeshed/issues/14701
|
||||
class _ANY(Any):
|
||||
def __eq__(self, other: object) -> Literal[True]: ...
|
||||
def __ne__(self, other: object) -> Literal[False]: ...
|
||||
__hash__: ClassVar[None] # type: ignore[assignment]
|
||||
|
||||
Reference in new issue
Block a user