diff --git a/stubs/Pygments/@tests/stubtest_allowlist.txt b/stubs/Pygments/@tests/stubtest_allowlist.txt index 00d6b1e0e..2d07b5ad5 100644 --- a/stubs/Pygments/@tests/stubtest_allowlist.txt +++ b/stubs/Pygments/@tests/stubtest_allowlist.txt @@ -5,7 +5,8 @@ pygments.style.StyleMeta.__new__ # Defined in lexer classes, intended to be used as static method, but doesn't use @staticmethod pygments.lexer.LexerMeta.analyse_text -# Inheriting from tuple seems to do something weird +# Inheriting from tuple is weird +pygments.token._TokenType.__init__ pygments.token.Number pygments.token.String pygments.token.Token diff --git a/stubs/Pygments/pygments/token.pyi b/stubs/Pygments/pygments/token.pyi index 5a15c959f..67c5506f0 100644 --- a/stubs/Pygments/pygments/token.pyi +++ b/stubs/Pygments/pygments/token.pyi @@ -4,7 +4,6 @@ class _TokenType(tuple[str]): parent: _TokenType | None def split(self) -> list[_TokenType]: ... subtypes: set[_TokenType] - def __init__(self, *args: str) -> None: ... def __contains__(self, val: _TokenType) -> bool: ... # type: ignore[override] def __getattr__(self, name: str) -> _TokenType: ... def __copy__(self): ...