Remove mock from pyright's exclude (#8942)

This commit is contained in:
Nikita Sobolev
2022-10-20 17:11:11 +03:00
committed by GitHub
parent b0b0cc6474
commit c7983ec8d5
2 changed files with 3 additions and 4 deletions

View File

@@ -52,7 +52,6 @@
"stubs/jsonschema",
"stubs/ldap3",
"stubs/Markdown",
"stubs/mock",
"stubs/mysqlclient",
"stubs/oauthlib",
"stubs/openpyxl",

View File

@@ -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: ...