massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / coc-python-data / languageServer.0.5.59 / Typeshed / stdlib / 2 / tokenize.pyi
1 # Automatically generated by pytype, manually fixed up. May still contain errors.\r
2 \r
3 from typing import Any, Callable, Dict, Generator, Iterator, List, Tuple, Union, Iterable\r
4 \r
5 __author__ = ...  # type: str\r
6 __credits__ = ...  # type: str\r
7 \r
8 AMPER = ...  # type: int\r
9 AMPEREQUAL = ...  # type: int\r
10 AT = ...  # type: int\r
11 BACKQUOTE = ...  # type: int\r
12 Binnumber = ...  # type: str\r
13 Bracket = ...  # type: str\r
14 CIRCUMFLEX = ...  # type: int\r
15 CIRCUMFLEXEQUAL = ...  # type: int\r
16 COLON = ...  # type: int\r
17 COMMA = ...  # type: int\r
18 COMMENT = ...  # type: int\r
19 Comment = ...  # type: str\r
20 ContStr = ...  # type: str\r
21 DEDENT = ...  # type: int\r
22 DOT = ...  # type: int\r
23 DOUBLESLASH = ...  # type: int\r
24 DOUBLESLASHEQUAL = ...  # type: int\r
25 DOUBLESTAR = ...  # type: int\r
26 DOUBLESTAREQUAL = ...  # type: int\r
27 Decnumber = ...  # type: str\r
28 Double = ...  # type: str\r
29 Double3 = ...  # type: str\r
30 ENDMARKER = ...  # type: int\r
31 EQEQUAL = ...  # type: int\r
32 EQUAL = ...  # type: int\r
33 ERRORTOKEN = ...  # type: int\r
34 Expfloat = ...  # type: str\r
35 Exponent = ...  # type: str\r
36 Floatnumber = ...  # type: str\r
37 Funny = ...  # type: str\r
38 GREATER = ...  # type: int\r
39 GREATEREQUAL = ...  # type: int\r
40 Hexnumber = ...  # type: str\r
41 INDENT = ...  # type: int\r
42 \r
43 def ISEOF(x: int) -> bool: ...\r
44 def ISNONTERMINAL(x: int) -> bool: ...\r
45 def ISTERMINAL(x: int) -> bool: ...\r
46 \r
47 Ignore = ...  # type: str\r
48 Imagnumber = ...  # type: str\r
49 Intnumber = ...  # type: str\r
50 LBRACE = ...  # type: int\r
51 LEFTSHIFT = ...  # type: int\r
52 LEFTSHIFTEQUAL = ...  # type: int\r
53 LESS = ...  # type: int\r
54 LESSEQUAL = ...  # type: int\r
55 LPAR = ...  # type: int\r
56 LSQB = ...  # type: int\r
57 MINEQUAL = ...  # type: int\r
58 MINUS = ...  # type: int\r
59 NAME = ...  # type: int\r
60 NEWLINE = ...  # type: int\r
61 NL = ...  # type: int\r
62 NOTEQUAL = ...  # type: int\r
63 NT_OFFSET = ...  # type: int\r
64 NUMBER = ...  # type: int\r
65 N_TOKENS = ...  # type: int\r
66 Name = ...  # type: str\r
67 Number = ...  # type: str\r
68 OP = ...  # type: int\r
69 Octnumber = ...  # type: str\r
70 Operator = ...  # type: str\r
71 PERCENT = ...  # type: int\r
72 PERCENTEQUAL = ...  # type: int\r
73 PLUS = ...  # type: int\r
74 PLUSEQUAL = ...  # type: int\r
75 PlainToken = ...  # type: str\r
76 Pointfloat = ...  # type: str\r
77 PseudoExtras = ...  # type: str\r
78 PseudoToken = ...  # type: str\r
79 RBRACE = ...  # type: int\r
80 RIGHTSHIFT = ...  # type: int\r
81 RIGHTSHIFTEQUAL = ...  # type: int\r
82 RPAR = ...  # type: int\r
83 RSQB = ...  # type: int\r
84 SEMI = ...  # type: int\r
85 SLASH = ...  # type: int\r
86 SLASHEQUAL = ...  # type: int\r
87 STAR = ...  # type: int\r
88 STAREQUAL = ...  # type: int\r
89 STRING = ...  # type: int\r
90 Single = ...  # type: str\r
91 Single3 = ...  # type: str\r
92 Special = ...  # type: str\r
93 String = ...  # type: str\r
94 TILDE = ...  # type: int\r
95 Token = ...  # type: str\r
96 Triple = ...  # type: str\r
97 VBAR = ...  # type: int\r
98 VBAREQUAL = ...  # type: int\r
99 Whitespace = ...  # type: str\r
100 chain = ...  # type: type\r
101 double3prog = ...  # type: type\r
102 endprogs = ...  # type: Dict[str, Any]\r
103 pseudoprog = ...  # type: type\r
104 single3prog = ...  # type: type\r
105 single_quoted = ...  # type: Dict[str, str]\r
106 t = ...  # type: str\r
107 tabsize = ...  # type: int\r
108 tok_name = ...  # type: Dict[int, str]\r
109 tokenprog = ...  # type: type\r
110 triple_quoted = ...  # type: Dict[str, str]\r
111 x = ...  # type: str\r
112 \r
113 _Pos = Tuple[int, int]\r
114 _TokenType = Tuple[int, str, _Pos, _Pos, str]\r
115 \r
116 def any(*args, **kwargs) -> str: ...\r
117 def generate_tokens(readline: Callable[[], str]) -> Generator[_TokenType, None, None]: ...\r
118 def group(*args: str) -> str: ...\r
119 def maybe(*args: str) -> str: ...\r
120 def printtoken(type: int, token: str, srow_scol: _Pos, erow_ecol: _Pos, line: str) -> None: ...\r
121 def tokenize(readline: Callable[[], str], tokeneater: Callable[[Tuple[int, str, _Pos, _Pos, str]], None]) -> None: ...\r
122 def tokenize_loop(readline: Callable[[], str], tokeneater: Callable[[Tuple[int, str, _Pos, _Pos, str]], None]) -> None: ...\r
123 def untokenize(iterable: Iterable[_TokenType]) -> str: ...\r
124 \r
125 class StopTokenizing(Exception): ...\r
126 \r
127 class TokenError(Exception): ...\r
128 \r
129 class Untokenizer:\r
130     prev_col = ...  # type: int\r
131     prev_row = ...  # type: int\r
132     tokens = ...  # type: List[str]\r
133     def __init__(self) -> None: ...\r
134     def add_whitespace(self, _Pos) -> None: ...\r
135     def compat(self, token: Tuple[int, Any], iterable: Iterator[_TokenType]) -> None: ...\r
136     def untokenize(self, iterable: Iterable[_TokenType]) -> str: ...\r