Add cookie_re / blank_re to py3 tokenize (#3745)

This commit is contained in:
Anthony Sottile
2020-02-20 14:10:30 -08:00
committed by GitHub
parent 7b630ca24a
commit 9ec0bcf7e4

View File

@@ -1,4 +1,4 @@
from typing import Any, Callable, Generator, Iterable, List, NamedTuple, Optional, Union, Sequence, TextIO, Tuple
from typing import Any, Callable, Generator, Iterable, List, NamedTuple, Optional, Pattern, Union, Sequence, TextIO, Tuple
from builtins import open as _builtin_open
import sys
from token import * # noqa: F403
@@ -8,6 +8,9 @@ if sys.version_info < (3, 7):
NL: int
ENCODING: int
cookie_re: Pattern[str]
blank_re: Pattern[bytes]
_Position = Tuple[int, int]
class _TokenInfo(NamedTuple):