-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
generate_self_schema.py incompatible with Python 3.13.0b1 #1292
Comments
We'll be testing on 3.13 very soon, just waiting to get this in PyO3 first PyO3/pyo3#4184 |
This particular error should be fixed in #1299 |
When we changed the version explicitly in pipfile, pydantic from 1.10.15 to 1.10.16 which solved the unit test step failure issue in github Actions. Upgraded python runtime from 3.8 to 3.12 then we got the error in GitHUb actions unit test step "TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'" |
Python 3.13.0b1 (initially python/cpython#118009 but there have been several follow ups) changed the signature of
ForwardRef._evaluate
so it is now_evaluate(globalns, localns, type_params=_sentinel, *, recursive_guard)
generate_self_schema.py
calls this function as follows (with a fallback):pydantic-core/generate_self_schema.py
Lines 191 to 196 in aed6844
and therefore fails on both branches with
TypeError: ForwardRef._evaluate() missing 1 required keyword-only argument: 'recursive_guard'
Locally I changed
set()
torecursive_guard=set()
and it builds fine (with theUNSAFE_PYO3_SKIP_VERSION_CHECK
environment variable).Full build output
The text was updated successfully, but these errors were encountered: