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

@@ -29,7 +29,7 @@ class Morsel(Dict[str, Any], Generic[_T]):
def set(self, key: str, val: str, coded_val: _T, LegalChars: str = ...) -> None: ...
def setdefault(self, key: str, val: str | None = ...) -> str: ...
# The dict update can also get a keywords argument so this is incompatible
@overload # type: ignore
@overload # type: ignore[override]
def update(self, values: Mapping[str, str]) -> None: ...
@overload
def update(self, values: Iterable[tuple[str, str]]) -> None: ...