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