mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 04:04:25 +08:00
mark some positional-only arguments (#4693)
https://github.com/python/mypy/pull/9626 will make stubtest a little bit stricter about positional-only arguments for dunders like __init__ Co-authored-by: hauntsaninja <>
This commit is contained in:
2
third_party/2and3/mock.pyi
vendored
2
third_party/2and3/mock.pyi
vendored
@@ -73,7 +73,7 @@ class Base:
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
||||
|
||||
class NonCallableMock(Base, Any): # type: ignore
|
||||
def __new__(cls, *args: Any, **kw: Any) -> NonCallableMock: ...
|
||||
def __new__(__cls, *args: Any, **kw: Any) -> NonCallableMock: ...
|
||||
def __init__(
|
||||
self,
|
||||
spec: Union[List[str], object, Type[object], None] = ...,
|
||||
|
||||
Reference in New Issue
Block a user