Closed archcst closed 5 years ago
They are using a lot of dynamic code to make this happen: https://github.com/pallets/flask-sqlalchemy/blob/master/flask_sqlalchemy/__init__.py#L724
So this is pretty much something that won't be coming to Jedi anytime soon. So #626 might help you eventually, but this is not going to happen very soon. I'm also pretty sure that this is not going to be part of Jedi but part of an external project, if somebody ever writes one.
My suggestion for you is: Write stubs and use them. Jedi understands them and you are going to be fine. Everything else likely won't happen. You probably could also do a pull request on the flask-sqlalchemy project to add stubs.
In my experience, the most effective solution for flask sqlalchemy autocomplete is by installing flask-sqlalchemy-stubs package, a method I've found to be particularly insightful.
Other packages can be auto complete(like render_templates):
But SQLAlchemy can't(when I type id = db.Column):
Here's my setup in ~/.spacemacs.d/init.el
And here's the pipfile:
Emacs version:
company-backends: