mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
Add mypy error codes to '# type: ignore' comments (#6379)
This commit is contained in:
@@ -89,7 +89,9 @@ class LexerContext:
|
||||
def __init__(self, text, pos, stack: Any | None = ..., end: Any | None = ...) -> None: ...
|
||||
|
||||
class ExtendedRegexLexer(RegexLexer):
|
||||
def get_tokens_unprocessed(self, text: str | None = ..., context: LexerContext | None = ...) -> Iterator[tuple[int, _TokenType, str]]: ... # type: ignore
|
||||
def get_tokens_unprocessed( # type: ignore[override]
|
||||
self, text: str | None = ..., context: LexerContext | None = ...
|
||||
) -> Iterator[tuple[int, _TokenType, str]]: ...
|
||||
|
||||
class ProfilingRegexLexerMeta(RegexLexerMeta): ...
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ class _TokenType(Tuple[str]): # TODO: change to lower-case tuple once new mypy
|
||||
def split(self) -> list[_TokenType]: ...
|
||||
subtypes: set[_TokenType]
|
||||
def __init__(self, *args: str) -> None: ...
|
||||
def __contains__(self, val: _TokenType) -> bool: ... # type: ignore
|
||||
def __contains__(self, val: _TokenType) -> bool: ... # type: ignore[override]
|
||||
def __getattr__(self, name: str) -> _TokenType: ...
|
||||
def __copy__(self): ...
|
||||
def __deepcopy__(self, memo): ...
|
||||
|
||||
Reference in New Issue
Block a user