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
Little problem with the type hint #1205
Comments
It's a bug with pyright: microsoft/pyright#3884. I'm willing to take the suggested fix of |
It't not only |
Yes, that's what I meant. |
Merged
6 tasks
Fixed in 3.0.4 which is now released. Thanks for the PR! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
sqlalchemy does not exporse orm as a clear attr, so the type hint there is not working.
now we change that to this with full path.
And it works out with the type hint.
The main problem with that might be the use of some thing like
db.session
, which I use a lot in project to do CRUD operations. Previously we have that. It will stock since sa don't have orm attr. It's a module.flask-sqlalchemy/src/flask_sqlalchemy/extension.py
Line 325 in d137db1
And I think we should make this little change to provide more type hint info.
Environment:
The text was updated successfully, but these errors were encountered: