generate_tokens(readline) must return bytes (#3372)

This commit is contained in:
Sebastian Rittau
2019-10-16 17:55:23 +02:00
committed by Jelle Zijlstra
parent 67629a14a7
commit 299d89ab76

View File

@@ -41,7 +41,7 @@ class Untokenizer:
def untokenize(iterable: Iterable[_Token]) -> Any: ...
def detect_encoding(readline: Callable[[], bytes]) -> Tuple[str, Sequence[bytes]]: ...
def tokenize(readline: Callable[[], bytes]) -> Generator[TokenInfo, None, None]: ...
def generate_tokens(readline: Callable[[], str]) -> Generator[TokenInfo, None, None]: ...
def generate_tokens(readline: Callable[[], bytes]) -> Generator[TokenInfo, None, None]: ... # undocumented
if sys.version_info >= (3, 6):
from os import PathLike