mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
Add mailcap module (#3482)
This commit is contained in:
committed by
Jelle Zijlstra
parent
56688240a1
commit
e2cf7c1bcf
7
stdlib/2and3/mailcap.pyi
Normal file
7
stdlib/2and3/mailcap.pyi
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
from typing import Sequence, Dict, List, Union, Tuple, Optional, Mapping
|
||||
|
||||
_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]]: ...
|
||||
def getcaps() -> Dict[str, List[_Cap]]: ...
|
||||
Reference in New Issue
Block a user