-
-
Notifications
You must be signed in to change notification settings - Fork 902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix issue #1312: Type (typehint) error when calling db.Model
subclass constructor with parameters
#1321
base: stable
Are you sure you want to change the base?
Commits on Mar 27, 2024
-
Solve the issue pallets-eco#1312
1. Provide a descriptor `ModelGetter` for solving the `db.Model` type from the `db` type dynamically. 2. Add `t.Type[sa_orm.MappedAsDataclass]` to `_FSA_MCT`. 3. Let `SQLAlchemy(...)` annotated by the provided `model_class` type.
Configuration menu - View commit details
-
Copy full SHA for dcc2a23 - Browse repository at this point
Copy the full SHA dcc2a23View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8f2bfd1 - Browse repository at this point
Copy the full SHA 8f2bfd1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1638622 - Browse repository at this point
Copy the full SHA 1638622View commit details -
Fix an issue when
tox p
fails becausemypy
is forbidden.See details here: https://stackoverflow.com/a/47716994/8266012
Configuration menu - View commit details
-
Copy full SHA for 3065b7c - Browse repository at this point
Copy the full SHA 3065b7cView commit details
Commits on Apr 29, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 0c9f711 - Browse repository at this point
Copy the full SHA 0c9f711View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for 2dddeb7 - Browse repository at this point
Copy the full SHA 2dddeb7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c46668 - Browse repository at this point
Copy the full SHA 3c46668View commit details -
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Configuration menu - View commit details
-
Copy full SHA for d408894 - Browse repository at this point
Copy the full SHA d408894View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b97634 - Browse repository at this point
Copy the full SHA 9b97634View commit details -
t.cast
should acceptt.Type[...]
instead oftype[...]
to preven……t runtime failure in python3.8.
Configuration menu - View commit details
-
Copy full SHA for f383186 - Browse repository at this point
Copy the full SHA f383186View commit details