Using pydantic?
#5707
Replies: 3 comments 2 replies
-
More detail, collected with
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
To clarify this pydantic_core is written in rust, but uses the C-api to communicate/register it’s module. I will get module loading working in #5604 at some point, but it’s likely not going to be complete enough for pydantic_core to be used (atleast for a bit). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Importing
pydantic
seems to be problematic, possibly becausepydantic_core
is a native module:_pydantic_core.cpython-312-darwin.so
. What approach is suggested for these scenarios? Must one manually use the vm.add_native_module()
API for these? I was expecting the rustpython loader to handle these transparently, but this does not appear to be the case?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions