python-gino / gino

GINO Is Not ORM - a Python asyncio ORM on SQLAlchemy core.
https://python-gino.org/
Other
2.67k stars 150 forks source link

Pycharm IDE can not show some suggestions about Gino #755

Open duongvox99 opened 3 years ago

duongvox99 commented 3 years ago

My PyCharm IDE does not show any suggesstion which I see in documentation page of Gino. Anyone can help me to config IDE or any ways to fix it, please? Thank you very much.

Screenshot from 2021-01-22 16-28-03

NWYLZW commented 3 years ago

+1

mikekeda commented 3 years ago

Pycharm can use stubs for suggestions - https://www.jetbrains.com/help/pycharm/stubs.html and I found stubs for gino - https://github.com/bryanforbes/gino-stubs/ You could try to use this

fantix commented 3 years ago

Thanks for all the comments!

As SQLAlchemy 1.4 is going to have experimental support on typing, let's try to include native typing support in GINO 1.4 (likely the next major release after 1.1) with dataclasses, or find a way to live together with SQLAlchemy ORM (or its mapper) in peace. Refs #688