mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-25 14:07:23 +08:00
use TextIOWrapper for sys.__stdin__, sys.__stdout__, sys.__stderr__ (#5623)
This commit is contained in:
1 parent
48a346920b
commit
9565c595ca
1 file changed
+4
-3
+4
-3
@@ -2,6 +2,7 @@ import sys
|
||||
from builtins import object as _object
|
||||
from importlib.abc import Loader, PathEntryFinder
|
||||
from importlib.machinery import ModuleSpec
|
||||
from io import TextIOWrapper
|
||||
from types import FrameType, ModuleType, TracebackType
|
||||
from typing import (
|
||||
Any,
|
||||
@@ -79,9 +80,9 @@ stdout: TextIO
|
||||
stderr: TextIO
|
||||
if sys.version_info >= (3, 10):
|
||||
stdlib_module_names: FrozenSet[str]
|
||||
__stdin__: TextIO
|
||||
__stdout__: TextIO
|
||||
__stderr__: TextIO
|
||||
__stdin__: TextIOWrapper
|
||||
__stdout__: TextIOWrapper
|
||||
__stderr__: TextIOWrapper
|
||||
tracebacklimit: int
|
||||
version: str
|
||||
api_version: int
|
||||
|
||||
Reference in new issue
Block a user