Skip to content

Intellisense autocomplete does not show for in_ in VSCode #1477

Discussion options

You must be logged in to vote

sqlmodel provides a function col() to change SQLModel attrs to Column, so you just need to change your code like this:

from sqlmodel import col

db_statement = select(Hero).where(col(Hero.name).in_(hero_names))

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
3 participants
Converted from issue

This discussion was converted from issue #294 on August 11, 2025 14:59.