Open
Description
Describe the bug
I'm using VSCode with pylance and sqlalchmey=1.4.32.
If I try to use the add()
method of the AsyncSession
, I get an pylance error:
Cannot access member "add" for type "AsyncSession"
It works none the less, but the type hinting etc. is messed up.
To Reproduce
from sqlalchemy.ext.asyncio import AsyncSession
... # init the session, etc. pp
session.add()
Error
Cannot access member "add" for type "AsyncSession"
Versions
- Python: 3.11
- SQLAlchemy: 1.4.32
Additional context
No response