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

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