Add mypy error codes to type: ignores, remove unused ignores (#7504)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
Alex Waygood
2022-03-19 13:10:00 +00:00
committed by GitHub
parent 4308915e06
commit 340c6c97ed
67 changed files with 159 additions and 150 deletions

View File

@@ -11,7 +11,7 @@ class NodeList(list[_T]):
class EmptyNodeList(tuple[Any, ...]):
length: int
def item(self, index: int) -> None: ...
def __add__(self, other: Iterable[_T]) -> NodeList[_T]: ... # type: ignore
def __add__(self, other: Iterable[_T]) -> NodeList[_T]: ... # type: ignore[override]
def __radd__(self, other: Iterable[_T]) -> NodeList[_T]: ...
def defproperty(klass: type[Any], name: str, doc: str) -> None: ...

View File

@@ -2,5 +2,5 @@ from typing import Any
def __getattr__(name: str) -> Any: ... # incomplete
class DocumentLS(Any): ... # type: ignore
class DOMImplementationLS(Any): ... # type: ignore
class DocumentLS(Any): ...
class DOMImplementationLS(Any): ...