diff --git a/stdlib/2and3/mailcap.pyi b/stdlib/2and3/mailcap.pyi new file mode 100644 index 000000000..8f9689d9f --- /dev/null +++ b/stdlib/2and3/mailcap.pyi @@ -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]]: ...