diff --git a/pyrightconfig.stricter.json b/pyrightconfig.stricter.json index f8a7e4bda..c93caeff8 100644 --- a/pyrightconfig.stricter.json +++ b/pyrightconfig.stricter.json @@ -52,7 +52,6 @@ "stubs/jsonschema", "stubs/ldap3", "stubs/Markdown", - "stubs/mock", "stubs/mysqlclient", "stubs/oauthlib", "stubs/openpyxl", diff --git a/stubs/mock/mock/mock.pyi b/stubs/mock/mock/mock.pyi index d369f6ec7..4506dbb56 100644 --- a/stubs/mock/mock/mock.pyi +++ b/stubs/mock/mock/mock.pyi @@ -55,9 +55,9 @@ class _Call(tuple[Any, ...]): def __call__(self, *args: Any, **kwargs: Any) -> _Call: ... def __getattr__(self, attr: str) -> Any: ... @property - def args(self): ... + def args(self) -> tuple[Any, ...]: ... @property - def kwargs(self): ... + def kwargs(self) -> dict[str, Any]: ... def call_list(self) -> _CallList: ... call: _Call @@ -289,7 +289,7 @@ class AsyncMock(AsyncMockMixin, AsyncMagicMixin, Mock): ... class MagicProxy(Base): name: str parent: Any - def __init__(self, name: str, parent) -> None: ... + def __init__(self, name: str, parent: Any) -> None: ... def create_mock(self) -> Any: ... def __get__(self, obj: Any, _type: Any | None = ...) -> Any: ...