more typings
This commit is contained in:
parent
d5d70c61ff
commit
d4bb3ed734
@ -171,7 +171,7 @@ class Model(Base, sqlmodel.SQLModel): # pyright: ignore [reportGeneralTypeIssue
|
|||||||
super().__init_subclass__()
|
super().__init_subclass__()
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _dict_recursive(cls, value):
|
def _dict_recursive(cls, value: Any):
|
||||||
"""Recursively serialize the relationship object(s).
|
"""Recursively serialize the relationship object(s).
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
@ -1582,7 +1582,9 @@ def array_contains_field_operation(
|
|||||||
|
|
||||||
|
|
||||||
@var_operation
|
@var_operation
|
||||||
def array_contains_operation(haystack: ArrayVar, needle: Any | Var):
|
def array_contains_operation(
|
||||||
|
haystack: ArrayVar, needle: Any | Var
|
||||||
|
) -> CustomVarOperationReturn[bool]:
|
||||||
"""Check if an array contains an element.
|
"""Check if an array contains an element.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
@ -1625,7 +1627,7 @@ if TYPE_CHECKING:
|
|||||||
def map_array_operation(
|
def map_array_operation(
|
||||||
array: ArrayVar[ARRAY_VAR_TYPE],
|
array: ArrayVar[ARRAY_VAR_TYPE],
|
||||||
function: FunctionVar,
|
function: FunctionVar,
|
||||||
):
|
) -> CustomVarOperationReturn[List[Any]]:
|
||||||
"""Map a function over an array.
|
"""Map a function over an array.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
Loading…
Reference in New Issue
Block a user