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,5 +1,5 @@
|
||||
import datetime
|
||||
from typing import Any, Callable, Collection, Iterator, Sequence, TypeVar, Union
|
||||
from typing import Any, Callable, Collection, Iterator, Sequence, Type, TypeVar, Union
|
||||
|
||||
import psycopg2
|
||||
from markupsafe import Markup
|
||||
@@ -158,14 +158,14 @@ class Field(metaclass=MetaField):
|
||||
|
||||
class Boolean(Field):
|
||||
type: str
|
||||
column_type: type[str, str]
|
||||
column_type: tuple[str, str]
|
||||
def convert_to_column(self, value, record: BaseModel, values: Any | None = ..., validate: bool = ...) -> bool: ...
|
||||
def convert_to_cache(self, value, record: BaseModel, validate: bool = ...) -> bool: ...
|
||||
def convert_to_export(self, value, record: BaseModel): ...
|
||||
|
||||
class Integer(Field):
|
||||
type: str
|
||||
column_type: type[str, str]
|
||||
column_type: tuple[str, str]
|
||||
_slots: dict[str, Any]
|
||||
def convert_to_column(self, value, record: BaseModel, values: Any | None = ..., validate: bool = ...) -> int: ...
|
||||
def convert_to_cache(self, value, record: BaseModel, validate: bool = ...) -> int | None: ...
|
||||
@@ -184,7 +184,7 @@ class Float(Field):
|
||||
def column_type(self): ...
|
||||
def get_digits(self, env: Environment) -> tuple[int, int]: ...
|
||||
_related__digits: Any
|
||||
def _description_digits(self, env: Environment) -> type[int, int]: ...
|
||||
def _description_digits(self, env: Environment) -> tuple[int, int]: ...
|
||||
def convert_to_column(self, value, record: BaseModel, values: Any | None = ..., validate: bool = ...) -> float: ...
|
||||
def convert_to_cache(self, value, record: BaseModel, validate: bool = ...) -> float: ...
|
||||
def convert_to_record(self, value, record: BaseModel): ...
|
||||
|
||||
Reference in New Issue
Block a user