readline callback must return str, not bytes.
This commit is contained in:
Sebastian Rittau
2019-11-23 20:17:14 +01:00
committed by GitHub
parent 1871e50936
commit c0d46a2035

View File

@@ -40,7 +40,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[[], bytes]) -> Generator[TokenInfo, None, None]: ... # undocumented
def generate_tokens(readline: Callable[[], str]) -> Generator[TokenInfo, None, None]: ... # undocumented
if sys.version_info >= (3, 6):
from os import PathLike