Files
typeshed/stdlib/mailcap.pyi
2022-04-18 12:50:37 +02:00

12 lines
378 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 = ..., filename: str = ..., plist: Sequence[str] = ...
) -> tuple[str | None, _Cap | None]: ...
def getcaps() -> dict[str, list[_Cap]]: ...