Skip to content

fix(main): allow bool type in Field exclude parameter type annotations - #2055

Closed
amir-rezaei wants to merge 1 commit into
fastapi:mainfrom
amir-rezaei:fix/field-exclude-bool-type-annotation
Closed

fix(main): allow bool type in Field exclude parameter type annotations#2055
amir-rezaei wants to merge 1 commit into
fastapi:mainfrom
amir-rezaei:fix/field-exclude-bool-type-annotation

Conversation

@amir-rezaei

Copy link
Copy Markdown

Description

This PR allows bool in the type hints for the exclude parameter of Field() overloads in sqlmodel/main.py.

Details

  • Fixes type checker warnings (mypy/pyright) when using Field(exclude=True).

@YuriiMotov

Copy link
Copy Markdown
Member

Thanks, but we already have #1724

@YuriiMotov YuriiMotov closed this Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants