mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-01 09:03:23 +08:00
Move some constants from tokenize to token in Python 3.7+. (#3175)
This commit is contained in:
committed by
Sebastian Rittau
parent
0dea39cb3c
commit
6f01493edc
@@ -65,6 +65,10 @@ ERRORTOKEN: int
|
||||
N_TOKENS: int
|
||||
NT_OFFSET: int
|
||||
tok_name: Dict[int, str]
|
||||
if sys.version_info >= (3, 7):
|
||||
COMMENT: int
|
||||
NL: int
|
||||
ENCODING: int
|
||||
|
||||
def ISTERMINAL(x: int) -> bool: ...
|
||||
def ISNONTERMINAL(x: int) -> bool: ...
|
||||
|
||||
@@ -3,9 +3,10 @@ from builtins import open as _builtin_open
|
||||
import sys
|
||||
from token import * # noqa: F403
|
||||
|
||||
COMMENT: int
|
||||
NL: int
|
||||
ENCODING: int
|
||||
if sys.version_info < (3, 7):
|
||||
COMMENT: int
|
||||
NL: int
|
||||
ENCODING: int
|
||||
|
||||
_Position = Tuple[int, int]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user