Closed ghost closed 6 months ago
Hi @fakeNews-jpg, thank you for your interest in GraalPy. I've already fixed this bug recently in db21f553ad6e2b66356872609dd98df8dedcce53. Unfortunately, because of the CI issues, that fix didn't yet make it into the snapshot build. Since my fix is just a one-line change in a python file, you could apply it yourself - just apply the change in the commit to lib/python3.10/typing.py
Effectively it works with this patch! :)
Thanks a lot
@fakeNews-jpg, FYI, there is a dev build finally available: https://github.com/graalvm/graalvm-ce-dev-builds/releases/
Hello,
Thanks again for your precedent answer,
I tried to use the version 24.0 for the patch of pydantic-core,
But there is an error with the simple code :
This script works with python and pydantic (pydantic==2.4.2, pydantic_core==2.10.1) but returns an error with graalpy and patched pydantic :
Another example of code maybe even more easier raising the same error is there: https://docs.pydantic.dev/latest/concepts/validators/#special-types
and this code too:
Have you an idea why it throws this error? And is there any patch we can apply?
Thanks again a lot for your amazing work on graalpython :)
F.N.