Repository navigation
Replies: 2 comments 1 reply
|
There is a PR that updates this type annotation to also accept instances of types. |
|
The annotation didn't actually change in 0.0.31. It was This has since been fixed properly. Starting with SQLModel 0.0.43 (PR #2095) I checked your model with basedpyright on Python 3.14:
So you can unpin and upgrade to |
Uh oh!
There was an error while loading. Please reload this page.
First Check
Commit to Help
Example Code
Description
basedpyright fail typechecking
error: Argument of type "Numeric[Decimal]" cannot be assigned to parameter "sa_type" of type "type[Any] | UndefinedType" in function "Field"
Type "Numeric[Decimal]" is not assignable to type "type[Any] | UndefinedType"
"Numeric[Decimal]" is not assignable to "type[Any]"
"Numeric[Decimal]" is not assignable to "PydanticUndefinedType" (reportArgumentType)
Operating System
Linux, macOS
Operating System Details
No response
SQLModel Version
0.0.31
Python Version
3.14
Additional Context
No response
All reactions