Replies: 1 comment
-
Hi @masenf, thanks for the report! I was just looking into this as well, #1578 should fix this, though with a slightly different implementation. In your proposed diff, I don't think you need to adjust anything in the second |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
An exception is raised
python3.14.0rc3
Operating System
Linux
Operating System Details
docker container:
python:3.14.0rc3
SQLModel Version
0.25.0
Python Version
3.14.0rc3
Additional Context
In python3.14, the class namespace key
__annotations__
may not be fully populated. Instead, the namespace may contain an__annotate_func__
which can be called to get the annotations.Note that before the class is constructed, this function is known as
__annotate_func__
rather than__annotate__
https://docs.python.org/3/reference/datamodel.html#object.__annotate__
With the following patch, sqlmodel seems to work properly on python3.14
Beta Was this translation helpful? Give feedback.
All reactions