Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions stubs/Pygments/pygments/lexer.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ from _typeshed import Incomplete
from collections.abc import Iterable, Iterator, Sequence
from re import Pattern, RegexFlag
from typing import ClassVar, Final
from typing_extensions import disjoint_base

from pygments.token import _TokenType
from pygments.util import Future
Expand Down Expand Up @@ -62,6 +63,7 @@ class _inherit: ...

inherit: Incomplete

@disjoint_base
class combined(tuple[Incomplete, ...]):
def __new__(cls, *args): ...
def __init__(self, *args) -> None: ...
Expand Down
3 changes: 2 additions & 1 deletion stubs/Pygments/pygments/token.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from collections.abc import Mapping
from typing import Any, Final
from typing_extensions import Self
from typing_extensions import Self, disjoint_base

@disjoint_base
class _TokenType(tuple[str, ...]):
parent: _TokenType | None
def split(self) -> list[_TokenType]: ...
Expand Down
Loading