File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 11import re
22from collections .abc import Callable , Iterable , Sequence
33from io import TextIOWrapper
4- from typing import Any , TextIO , TypeVar
4+ from typing import Any , TypeVar
55
66split_path_re : re .Pattern [str ]
77doctype_lookup_re : re .Pattern [str ]
@@ -34,8 +34,11 @@ class Future:
3434 def get (self ) -> str : ...
3535
3636def guess_decode (text : bytes ) -> tuple [bytes , str ]: ...
37- def guess_decode_from_terminal (text : bytes , term : TextIO | Any ) -> tuple [bytes , str ]: ...
38- def terminal_encoding (term : TextIO | Any ) -> str : ...
37+
38+ # In the following two methods, `term` are file-like objects that optionally have an
39+ # `encoding` attribute.
40+ def guess_decode_from_terminal (text : bytes , term : Any ) -> tuple [bytes , str ]: ...
41+ def terminal_encoding (term : Any ) -> str : ...
3942
4043class UnclosingTextIOWrapper (TextIOWrapper ):
4144 def close (self ) -> None : ...
You can’t perform that action at this time.
0 commit comments