首页 > 解决方案 > How to see VSCode popups for sessions in SQLAlchemy

问题描述

I'm making something with SQLAlchemy, and I have a trivial but annoying problem. I make a session like this:

engine=create_engine(db,echo=True)
Session= sessionmaker(bind=engine)
s=Session()

The issue is that VSCode doesnt show me any function list or documentation popup when I use s. I want to be able to see the documentation popups for this at least. Is there a way to do that?

标签: pythonvisual-studio-codesqlalchemyvscode-settings

解决方案


如果是,s=Session它会提示一些替代列表,因为它可以推断s:

在此处输入图像描述

虽然s=Session()不会:

在此处输入图像描述


推荐阅读