massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Pygments / pygments / token.pyi
1 from collections.abc import Mapping
2 from typing import Tuple
3
4 class _TokenType(Tuple[str]):  # TODO: change to lower-case tuple once new mypy released
5     parent: _TokenType | None
6     def split(self) -> list[_TokenType]: ...
7     subtypes: set[_TokenType]
8     def __init__(self, *args: str) -> None: ...
9     def __contains__(self, val: _TokenType) -> bool: ...  # type: ignore
10     def __getattr__(self, name: str) -> _TokenType: ...
11     def __copy__(self): ...
12     def __deepcopy__(self, memo): ...
13
14 Token: _TokenType
15 Text: _TokenType
16 Whitespace: _TokenType
17 Escape: _TokenType
18 Error: _TokenType
19 Other: _TokenType
20 Keyword: _TokenType
21 Name: _TokenType
22 Literal: _TokenType
23 String: _TokenType
24 Number: _TokenType
25 Punctuation: _TokenType
26 Operator: _TokenType
27 Comment: _TokenType
28 Generic: _TokenType
29
30 def is_token_subtype(ttype, other): ...
31 def string_to_tokentype(s): ...
32
33 # dict, but shouldn't be mutated
34 STANDARD_TYPES: Mapping[_TokenType, str]