Big diff: use lower-case list and dict (#5888)

This commit is contained in:
Akuli
2021-08-08 19:26:35 +03:00
committed by GitHub
parent 11f54c3407
commit ce11072dbe
325 changed files with 2196 additions and 2334 deletions

View File

@@ -1,8 +1,8 @@
from typing import Dict, List, Mapping, Sequence, Tuple, Union
from typing import Dict, Mapping, Sequence, Tuple, Union
_Cap = Dict[str, Union[str, int]]
def findmatch(
caps: Mapping[str, List[_Cap]], MIMEtype: str, key: str = ..., filename: str = ..., plist: Sequence[str] = ...
caps: Mapping[str, list[_Cap]], MIMEtype: str, key: str = ..., filename: str = ..., plist: Sequence[str] = ...
) -> Tuple[str | None, _Cap | None]: ...
def getcaps() -> Dict[str, List[_Cap]]: ...
def getcaps() -> dict[str, list[_Cap]]: ...