Skip to content

Enums are not autocompleted & gives error #1489

Discussion options

You must be logged in to vote

it throws "No parameter named access_status"

This is because you didn't specify the type of this parameter.

sa_column is only for SQLAlchemy. You still need to add type annotations for this field for Pydantic to be able to create the init method:

    access_status: EnumAccessStatus = Field(
        sa_column=Column(
            sqlAlchemyEnum(EnumAccessStatus)
        )
    )

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
Comment options

You must be logged in to vote
0 replies
Answer selected by YuriiMotov
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 #278 on August 12, 2025 08:20.