Remove compatibility aliases (#5464)

* Remove compatibility aliases

Remove a few instances of Text

Use aliases from _typeshed

* Remove unused imports
This commit is contained in:
Sebastian Rittau authored and GitHub committed 2021-05-15 20:49:20 +03:00
1 parent 056981b957
commit 841a365284
26 files changed
+483 -585

No files matched your search

+2 -3
View File
@@ -1,4 +1,5 @@
import sys
from _typeshed import StrPath
from typing import Any, AsyncIterator, Awaitable, Callable, Iterable, Optional, Tuple, Union
from . import events, protocols, transports
@@ -36,9 +37,7 @@ async def start_server(
if sys.platform != "win32":
if sys.version_info >= (3, 7):
from os import PathLike
_PathType = Union[str, PathLike[str]]
_PathType = StrPath
else:
_PathType = str
async def open_unix_connection(