more typings

This commit is contained in:
Lendemor 2024-11-20 20:19:48 +01:00
parent d5d70c61ff
commit d4bb3ed734
2 changed files with 5 additions and 3 deletions

View File

@ -171,7 +171,7 @@ class Model(Base, sqlmodel.SQLModel): # pyright: ignore [reportGeneralTypeIssue
super().__init_subclass__()
@classmethod
def _dict_recursive(cls, value):
def _dict_recursive(cls, value: Any):
"""Recursively serialize the relationship object(s).
Args:

View File

@ -1582,7 +1582,9 @@ def array_contains_field_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.
Args:
@ -1625,7 +1627,7 @@ if TYPE_CHECKING:
def map_array_operation(
array: ArrayVar[ARRAY_VAR_TYPE],
function: FunctionVar,
):
) -> CustomVarOperationReturn[List[Any]]:
"""Map a function over an array.
Args: