mirror of
https://github.com/odoo-ide/odoo-stubs.git
synced 2025-05-08 16:52:26 +03:00
Update stubs
This commit is contained in:
@@ -1,33 +1,32 @@
|
|||||||
from typing import Any, NamedTuple
|
import collections
|
||||||
|
from re import Pattern
|
||||||
|
from typing import Any, Literal
|
||||||
|
|
||||||
__all__: Any
|
__all__ = ['guess_mimetype']
|
||||||
_logger: Any
|
_ooxml_dirs: dict[str, str]
|
||||||
_ooxml_dirs: Any
|
|
||||||
|
|
||||||
def _check_ooxml(data): ...
|
def _check_ooxml(data: bytes) -> str | Literal[False]: ...
|
||||||
|
|
||||||
_mime_validator: Any
|
_mime_validator: Pattern
|
||||||
|
|
||||||
def _check_open_container_format(data): ...
|
def _check_open_container_format(data: bytes) -> str | Literal[False]: ...
|
||||||
|
|
||||||
_xls_pattern: Any
|
_xls_pattern: Pattern
|
||||||
_ppt_pattern: Any
|
_ppt_pattern: Pattern
|
||||||
|
|
||||||
def _check_olecf(data): ...
|
def _check_olecf(data: bytes) -> str | Literal[False]: ...
|
||||||
def _check_svg(data): ...
|
def _check_svg(data: bytes) -> str | None: ...
|
||||||
|
|
||||||
class _Entry(NamedTuple):
|
_Entry = collections.namedtuple('_Entry', ['mimetype', 'signatures', 'discriminants'])
|
||||||
mimetype: Any
|
_mime_mappings: tuple[_Entry, ...]
|
||||||
signatures: Any
|
|
||||||
discriminants: Any
|
|
||||||
_mime_mappings: Any
|
|
||||||
|
|
||||||
def _odoo_guess_mimetype(bin_data, default: str = ...): ...
|
def _odoo_guess_mimetype(bin_data: str, default: str = ...) -> str: ...
|
||||||
|
|
||||||
_guesser: Any
|
_guesser: Any
|
||||||
ms: Any
|
ms: Any
|
||||||
|
|
||||||
def guess_mimetype(bin_data, default: Any | None = ...): ...
|
def guess_mimetype(bin_data: str, default: str | None = ...) -> str: ...
|
||||||
guess_mimetype = _odoo_guess_mimetype
|
|
||||||
|
|
||||||
def neuter_mimetype(mimetype, user): ...
|
def neuter_mimetype(mimetype: str, user: 'odoo.model.res_users') -> str: ...
|
||||||
|
|
||||||
|
def get_extension(filename: str) -> str: ...
|
||||||
|
|||||||
Reference in New Issue
Block a user