mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Remove Python 3.6 branches from typeshed (#8269)
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import sys
|
||||
|
||||
ENDMARKER: int
|
||||
NAME: int
|
||||
NUMBER: int
|
||||
@@ -59,8 +57,7 @@ ATEQUAL: int
|
||||
AWAIT: int
|
||||
ASYNC: int
|
||||
ERRORTOKEN: int
|
||||
if sys.version_info >= (3, 7):
|
||||
COLONEQUAL: int
|
||||
COLONEQUAL: int
|
||||
N_TOKENS: int
|
||||
NT_OFFSET: int
|
||||
tok_name: dict[int, str]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from collections.abc import Callable, Iterable, Iterator
|
||||
from lib2to3.pgen2.token import *
|
||||
from typing_extensions import TypeAlias
|
||||
@@ -72,11 +71,9 @@ __all__ = [
|
||||
"tokenize",
|
||||
"generate_tokens",
|
||||
"untokenize",
|
||||
"COLONEQUAL",
|
||||
]
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
__all__ += ["COLONEQUAL"]
|
||||
|
||||
_Coord: TypeAlias = tuple[int, int]
|
||||
_TokenEater: TypeAlias = Callable[[int, str, _Coord, _Coord, str], object]
|
||||
_TokenInfo: TypeAlias = tuple[int, str, _Coord, _Coord, str]
|
||||
|
||||
Reference in New Issue
Block a user