Skip to content
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

Open
wants to merge 10 commits into
base: stable
Choose a base branch
from

Commits on Mar 27, 2024

  1. 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.
    cainmagi committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    dcc2a23 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8f2bfd1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1638622 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3065b7c View commit details
    Browse the repository at this point in the history

Commits on Apr 29, 2024

  1. Configuration menu
    Copy the full SHA
    0c9f711 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2dddeb7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3c46668 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d408894 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9b97634 View commit details
    Browse the repository at this point in the history
  6. t.cast should accept t.Type[...] instead of type[...] to preven…

    …t runtime failure in python3.8.
    cainmagi committed Apr 29, 2024
    Configuration menu
    Copy the full SHA
    f383186 View commit details
    Browse the repository at this point in the history