mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Add mypy error codes to '# type: ignore' comments (#6379)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
@@ -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): ...
|
||||
|
||||
Reference in New Issue
Block a user