Update stubs

This commit is contained in:
Trinh Anh Ngoc
2023-04-22 17:54:18 +07:00
parent 087e3218d9
commit 5b9fe22408

View File

@@ -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): ...