X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/8c8adedc2a74a494c24f93e405b6418ac32f54cd..f8617f975d56e81cfb4070ce65584f7b29a77e7a:/blib2to3/pgen2/tokenize.pyi diff --git a/blib2to3/pgen2/tokenize.pyi b/blib2to3/pgen2/tokenize.pyi index 62352e9..ac0f0f1 100644 --- a/blib2to3/pgen2/tokenize.pyi +++ b/blib2to3/pgen2/tokenize.pyi @@ -2,6 +2,7 @@ # NOTE: Only elements from __all__ are present. from typing import Callable, Iterable, Iterator, List, Text, Tuple +from attr import dataclass from blib2to3.pgen2.token import * # noqa @@ -9,6 +10,9 @@ _Coord = Tuple[int, int] _TokenEater = Callable[[int, Text, _Coord, _Coord, Text], None] _TokenInfo = Tuple[int, Text, _Coord, _Coord, Text] +@dataclass(frozen=True) +class TokenizerConfig: + async_is_reserved_keyword: bool = False class TokenError(Exception): ... class StopTokenizing(Exception): ...