Add `MimeTypes.add_types` method (#12329)

This commit is contained in:
Kirill Podoprigora
2024-07-13 11:29:46 +03:00
committed by GitHub
parent 670ca3125b
commit 1eb6e223f4
2 changed files with 1 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ class MimeTypes:
types_map: tuple[dict[str, str], dict[str, str]]
types_map_inv: tuple[dict[str, str], dict[str, str]]
def __init__(self, filenames: tuple[str, ...] = (), strict: bool = True) -> None: ...
def add_type(self, type: str, ext: str, strict: bool = True) -> None: ...
def guess_extension(self, type: str, strict: bool = True) -> str | None: ...
def guess_type(self, url: StrPath, strict: bool = True) -> tuple[str | None, str | None]: ...
def guess_all_extensions(self, type: str, strict: bool = True) -> list[str]: ...