From e2cf7c1bcf33fed300cb38556137a906240d6995 Mon Sep 17 00:00:00 2001 From: Rune Tynan Date: Mon, 25 Nov 2019 22:46:28 -0500 Subject: [PATCH] Add mailcap module (#3482) --- stdlib/2and3/mailcap.pyi | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 stdlib/2and3/mailcap.pyi 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]]: ...