mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add comments when subclassing Any (#9732)
This commit is contained in:
@@ -101,6 +101,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, *args: Any, **kw: Any) -> Self: ...
|
||||
def __init__(
|
||||
|
||||
Reference in New Issue
Block a user