mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
Add comments when subclassing Any (#9732)
This commit is contained in:
1 parent
c437f5ba06
commit
140bba3425
5 files changed
+13
-2
No files matched your search
@@ -81,6 +81,8 @@ class _CallList(list[_Call]):
|
||||
class Base:
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
|
||||
# We subclass with "Any" because mocks are explicitly designed to stand in for other types,
|
||||
# something that can't be expressed with our static type system.
|
||||
class NonCallableMock(Base, Any):
|
||||
def __new__(
|
||||
cls: type[Self],
|
||||
|
||||
Reference in new issue
Block a user