Files
typeshed/stdlib/mailcap.pyi
2023-03-21 09:12:34 +01:00

12 lines
388 B
Python

from collections.abc import Mapping, Sequence
from typing_extensions import TypeAlias
_Cap: TypeAlias = dict[str, str | int]
__all__ = ["getcaps", "findmatch"]
def findmatch(
caps: Mapping[str, list[_Cap]], MIMEtype: str, key: str = "view", filename: str = "/dev/null", plist: Sequence[str] = []
) -> tuple[str | None, _Cap | None]: ...
def getcaps() -> dict[str, list[_Cap]]: ...