mirror of
https://github.com/fastapi/sqlmodel.git
synced 2025-08-14 17:41:37 +08:00
♻️ Refactor type generation of selects re-order to prioritize models to optimize editor support (#718)
This commit is contained in:

committed by
GitHub

parent
e5fddb97a7
commit
853d787923
@ -24,7 +24,7 @@ arg_groups: List[Arg] = []
|
||||
signatures: List[Tuple[List[Arg], List[str]]] = []
|
||||
|
||||
for total_args in range(2, number_of_types + 1):
|
||||
arg_types_tuples = product(["scalar", "model"], repeat=total_args)
|
||||
arg_types_tuples = product(["model", "scalar"], repeat=total_args)
|
||||
for arg_type_tuple in arg_types_tuples:
|
||||
args: List[Arg] = []
|
||||
return_types: List[str] = []
|
||||
|
Reference in New Issue
Block a user