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:
@@ -20,9 +20,7 @@ from .tools.translate import _ as _
|
||||
from .tools.translate import _lt as _lt
|
||||
|
||||
MIN_PY_VERSION: tuple[int, ...]
|
||||
evented: bool
|
||||
iso8859_8: CodecInfo
|
||||
iso8859_8ie_re: Pattern
|
||||
MAX_PY_VERSION: tuple[int, ...]
|
||||
SUPERUSER_ID: int
|
||||
|
||||
def registry(database_name: str | None = ...) -> Registry: ...
|
||||
|
||||
@@ -6,6 +6,7 @@ from ..sql_db import Cursor
|
||||
_CallableT = TypeVar("_CallableT", bound=Callable)
|
||||
|
||||
PG_CONCURRENCY_ERRORS_TO_RETRY: tuple[str, str, str]
|
||||
PG_CONCURRENCY_EXCEPTIONS_TO_RETRY: tuple[Exception, ...]
|
||||
MAX_TRIES_ON_CONCURRENCY_FAILURE: int
|
||||
|
||||
def dispatch(method: str, params): ...
|
||||
|
||||
@@ -5,7 +5,7 @@ from lxml.etree import _Element
|
||||
|
||||
from ..api import Environment
|
||||
|
||||
safe_eval: Callable
|
||||
def safe_eval(expr, ctx: dict = ...): ...
|
||||
|
||||
class ParseError(Exception): ...
|
||||
|
||||
|
||||
@@ -18,7 +18,9 @@ class ImageProcess:
|
||||
def image_quality(
|
||||
self, quality: int = ..., output_format: str = ...
|
||||
) -> bytes | Literal[False]: ...
|
||||
def resize(self, max_width: int = ..., max_height: int = ...) -> ImageProcess: ...
|
||||
def resize(
|
||||
self, max_width: int = ..., max_height: int = ..., expand: bool = ...
|
||||
) -> ImageProcess: ...
|
||||
def crop_resize(
|
||||
self,
|
||||
max_width: int,
|
||||
@@ -26,13 +28,15 @@ class ImageProcess:
|
||||
center_x: float = ...,
|
||||
center_y: float = ...,
|
||||
) -> ImageProcess: ...
|
||||
def colorize(self) -> ImageProcess: ...
|
||||
def colorize(self, color: tuple | None = ...) -> ImageProcess: ...
|
||||
def add_padding(self, padding: int) -> ImageProcess: ...
|
||||
|
||||
def image_process(
|
||||
source: bytes,
|
||||
size: tuple[int, int] = ...,
|
||||
verify_resolution: bool = ...,
|
||||
quality: int = ...,
|
||||
expand: bool = ...,
|
||||
crop: str | None = ...,
|
||||
colorize: bool = ...,
|
||||
output_format: str = ...,
|
||||
|
||||
Reference in New Issue
Block a user