]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
fix typing for load_only, defer and undefer.
authorJanek Nouvertné <25355197+provinzkraut@users.noreply.github.com>
Sat, 22 Jul 2023 17:22:20 +0000 (19:22 +0200)
committerJanek Nouvertné <25355197+provinzkraut@users.noreply.github.com>
Sat, 22 Jul 2023 17:49:19 +0000 (19:49 +0200)
commit7fbd4fd01bfc2e87a35ad561c89667cee3c66bf1
treeeaff5daf46a9eb6209e39f1ceaf068d8008441b0
parent45b45619e75cb51bf1c3549a122edf8151a5d818
fix typing for load_only, defer and undefer.

Change the annotations for the attribute(s) parameters to `QueryableAttribute` and `QueryableAttribute | Literal["*"]` for defer and undefer, to accurately reflect the types they accept.

Fixes: #10131
lib/sqlalchemy/orm/strategy_options.py