mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-15 10:32:40 +08:00
readline callback must return str, not bytes.
This commit is contained in:
1 parent
1871e50936
commit
c0d46a2035
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user