mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
remove references to "Text" in Python 3-only stubs (#4251)
This commit is contained in:
@@ -3,7 +3,7 @@ from asyncio import events
|
||||
from asyncio import protocols
|
||||
from asyncio import streams
|
||||
from asyncio import transports
|
||||
from typing import Any, Optional, Text, Tuple, Union, IO
|
||||
from typing import Any, Optional, Tuple, Union, IO
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
from os import PathLike
|
||||
@@ -22,7 +22,7 @@ class SubprocessStreamProtocol(streams.FlowControlMixin,
|
||||
stderr: Optional[streams.StreamReader]
|
||||
def __init__(self, limit: int, loop: events.AbstractEventLoop) -> None: ...
|
||||
def connection_made(self, transport: transports.BaseTransport) -> None: ...
|
||||
def pipe_data_received(self, fd: int, data: Union[bytes, Text]) -> None: ...
|
||||
def pipe_data_received(self, fd: int, data: Union[bytes, str]) -> None: ...
|
||||
def pipe_connection_lost(self, fd: int, exc: Optional[Exception]) -> None: ...
|
||||
def process_exited(self) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user