mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-04 00:52:44 +08:00
Use TypeAlias where possible for type aliases (#7630)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from _typeshed import StrOrBytesPath
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
__all__ = ["netrc", "NetrcParseError"]
|
||||
|
||||
@@ -9,7 +10,7 @@ class NetrcParseError(Exception):
|
||||
def __init__(self, msg: str, filename: StrOrBytesPath | None = ..., lineno: int | None = ...) -> None: ...
|
||||
|
||||
# (login, account, password) tuple
|
||||
_NetrcTuple = tuple[str, str | None, str | None]
|
||||
_NetrcTuple: TypeAlias = tuple[str, str | None, str | None]
|
||||
|
||||
class netrc:
|
||||
hosts: dict[str, _NetrcTuple]
|
||||
|
||||
Reference in New Issue
Block a user