Add mypy error codes to '# type: ignore' comments (#6379)

This commit is contained in:
Akuli
2021-11-26 08:07:56 +02:00
committed by GitHub
parent 1278fa86e2
commit a5bc1e037f
74 changed files with 218 additions and 202 deletions

View File

@@ -72,7 +72,7 @@ class _MockIter:
class Base:
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
class NonCallableMock(Base, Any): # type: ignore
class NonCallableMock(Base, Any):
def __new__(__cls, *args: Any, **kw: Any) -> NonCallableMock: ...
def __init__(
self,
@@ -207,7 +207,7 @@ class _patcher:
TEST_PREFIX: str
dict: Type[_patch_dict]
@overload
def __call__( # type: ignore
def __call__( # type: ignore[misc]
self,
target: Any,
*,
@@ -234,7 +234,7 @@ class _patcher:
**kwargs: Any,
) -> _patch[_T]: ...
@overload
def object( # type: ignore
def object( # type: ignore[misc]
self,
target: Any,
attribute: str,