mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Switch to PEP-604 syntax in python2 stubs (#5915)
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
from typing import Dict, List, Mapping, Optional, Sequence, Tuple, Union
|
||||
from typing import Dict, List, 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] = ...
|
||||
) -> Tuple[Optional[str], Optional[_Cap]]: ...
|
||||
) -> Tuple[str | None, _Cap | None]: ...
|
||||
def getcaps() -> Dict[str, List[_Cap]]: ...
|
||||
|
||||
Reference in New Issue
Block a user