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

@@ -331,7 +331,7 @@ class Traceback(NamedTuple):
lineno: int
function: str
code_context: list[str] | None
index: int | None # type: ignore
index: int | None # type: ignore[assignment]
class FrameInfo(NamedTuple):
frame: FrameType
@@ -339,7 +339,7 @@ class FrameInfo(NamedTuple):
lineno: int
function: str
code_context: list[str] | None
index: int | None # type: ignore
index: int | None # type: ignore[assignment]
def getframeinfo(frame: FrameType | TracebackType, context: int = ...) -> Traceback: ...
def getouterframes(frame: Any, context: int = ...) -> list[FrameInfo]: ...