mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use variable annotations everywhere (#2909)
This commit is contained in:
committed by
Sebastian Rittau
parent
b3c76aab49
commit
efb67946f8
@@ -3,9 +3,9 @@ from builtins import open as _builtin_open
|
||||
import sys
|
||||
from token import * # noqa: F403
|
||||
|
||||
COMMENT = ... # type: int
|
||||
NL = ... # type: int
|
||||
ENCODING = ... # type: int
|
||||
COMMENT: int
|
||||
NL: int
|
||||
ENCODING: int
|
||||
|
||||
_Position = Tuple[int, int]
|
||||
|
||||
@@ -28,10 +28,10 @@ class TokenError(Exception): ...
|
||||
class StopTokenizing(Exception): ...
|
||||
|
||||
class Untokenizer:
|
||||
tokens = ... # type: List[str]
|
||||
prev_row = ... # type: int
|
||||
prev_col = ... # type: int
|
||||
encoding = ... # type: Optional[str]
|
||||
tokens: List[str]
|
||||
prev_row: int
|
||||
prev_col: int
|
||||
encoding: Optional[str]
|
||||
def __init__(self) -> None: ...
|
||||
def add_whitespace(self, start: _Position) -> None: ...
|
||||
def untokenize(self, iterable: Iterable[_Token]) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user