mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 585 syntax in Python 2, protobuf & _ast stubs, where possible (#6949)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
from typing import Dict, List, Mapping, Sequence, Tuple, Union
|
||||
from typing import Mapping, Sequence, Union
|
||||
|
||||
_Cap = Dict[str, Union[str, int]]
|
||||
_Cap = dict[str, Union[str, int]]
|
||||
|
||||
def findmatch(
|
||||
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]]: ...
|
||||
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]]: ...
|
||||
|
||||
Reference in New Issue
Block a user