mirror of
https://github.com/fastapi/sqlmodel.git
synced 2025-08-15 10:11:34 +08:00
✨ Upgrade SQLAlchemy to 2.0, including initial work by farahats9 (#700)
Co-authored-by: Mohamed Farahat <farahats9@yahoo.com> Co-authored-by: Stefan Borer <stefan.borer@gmail.com> Co-authored-by: Peter Landry <peter.landry@gmail.com>
This commit is contained in:

committed by
GitHub

parent
77c6fed305
commit
8ed856d322
@ -34,9 +34,9 @@ for total_args in range(2, number_of_types + 1):
|
||||
arg = Arg(name=f"entity_{i}", annotation=t_var)
|
||||
ret_type = t_var
|
||||
else:
|
||||
t_type = f"_TModel_{i}"
|
||||
t_var = f"Type[{t_type}]"
|
||||
arg = Arg(name=f"entity_{i}", annotation=t_var)
|
||||
t_type = f"_T{i}"
|
||||
t_var = f"_TCCA[{t_type}]"
|
||||
arg = Arg(name=f"__ent{i}", annotation=t_var)
|
||||
ret_type = t_type
|
||||
args.append(arg)
|
||||
return_types.append(ret_type)
|
||||
|
Reference in New Issue
Block a user