We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Is your feature request related to a problem? Please describe.
A typical typed SQLAlchemy model looks like this:
class Model(Base): name: Mapped[str] = Column(Unicode(100), nullable=True)
This works fine with mypy, but triggers the following error with Pylance/Pyright
Expression of type "Column[Unicode]" cannot be assigned to declared type "Mapped[str]"
Same for relationship
Describe the solution you'd like
Make Column and relationship inherit from Mapped
Additional context
I can make a PR if you're okay with this.
Have a nice day!
Is your feature request related to a problem? Please describe.
A typical typed SQLAlchemy model looks like this:
This works fine with mypy, but triggers the following error with Pylance/Pyright
Same for relationship
Describe the solution you'd like
Make Column and relationship inherit from Mapped
Additional context
I can make a PR if you're okay with this.
Have a nice day!