From 9836246a3550893277f2e117966d361e387e133c Mon Sep 17 00:00:00 2001 From: Ali Aliyev Date: Tue, 18 Jun 2024 23:12:02 +0400 Subject: [PATCH] fix: using typing.Tuple --- aiostd/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiostd/__init__.py b/aiostd/__init__.py index 5c54b14..78711cf 100644 --- a/aiostd/__init__.py +++ b/aiostd/__init__.py @@ -1,6 +1,6 @@ import asyncio import os -from typing import IO, Optional +from typing import IO, Optional, Tuple async def open_io_stream_reader( @@ -67,7 +67,7 @@ async def open_io_stream( reader: IO, writer: IO, loop: Optional[asyncio.AbstractEventLoop] = None, -) -> tuple[asyncio.StreamReader, asyncio.StreamWriter]: +) -> Tuple[asyncio.StreamReader, asyncio.StreamWriter]: """ Asynchronously opens both stream reader and writer for the given IO objects.