mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Use TypeAlias for type aliases where possible, part II (#7667)
This commit is contained in:
@@ -120,9 +120,9 @@ else:
|
||||
|
||||
if sys.platform != "win32":
|
||||
if sys.version_info >= (3, 7):
|
||||
_PathType = StrPath
|
||||
_PathType: TypeAlias = StrPath
|
||||
else:
|
||||
_PathType = str
|
||||
_PathType: TypeAlias = str
|
||||
if sys.version_info >= (3, 10):
|
||||
async def open_unix_connection(
|
||||
path: _PathType | None = ..., *, limit: int = ..., **kwds: Any
|
||||
|
||||
Reference in New Issue
Block a user