Files
typeshed/stdlib/mailcap.pyi
2022-02-20 14:08:07 -08:00

11 lines
331 B
Python

from typing import Mapping, Sequence, Union
_Cap = dict[str, Union[str, int]]
__all__ = ["getcaps", "findmatch"]
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]]: ...