mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
12 lines
388 B
Python
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]]: ...
|