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