mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _typeshed import StrOrBytesPath
|
||||
from typing import Dict, List, Optional, Tuple
|
||||
from typing import Optional, Tuple
|
||||
|
||||
class NetrcParseError(Exception):
|
||||
filename: str | None
|
||||
@@ -11,7 +11,7 @@ class NetrcParseError(Exception):
|
||||
_NetrcTuple = Tuple[str, Optional[str], Optional[str]]
|
||||
|
||||
class netrc:
|
||||
hosts: Dict[str, _NetrcTuple]
|
||||
macros: Dict[str, List[str]]
|
||||
hosts: dict[str, _NetrcTuple]
|
||||
macros: dict[str, list[str]]
|
||||
def __init__(self, file: StrOrBytesPath | None = ...) -> None: ...
|
||||
def authenticators(self, host: str) -> _NetrcTuple | None: ...
|
||||
|
||||
Reference in New Issue
Block a user