We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The issue is explained in python/mypy#17768, but the author closed the issue with no indication it had been resolved or even reported.
Error Message: error: X | Y syntax for unions requires Python 3.10
error: X | Y syntax for unions requires Python 3.10
See related issue
OS: Ubuntu 20.04 Python: 3.8.10 (Version that ships with Ubuntu 20.04) Pydantic: 2.9.2
The text was updated successfully, but these errors were encountered:
Well the error message is pretty clear? You are on Python 3.8, and this syntax was introduced in 3.10.
Pydantic will still be able to evaluate such expressions thanks to the eval_type_backport package, which needs to be manually installed.
eval_type_backport
Sorry, something went wrong.
No branches or pull requests
Initial Checks
Description
The issue is explained in python/mypy#17768, but the author closed the issue with no indication it had been resolved or even reported.
Error Message:
error: X | Y syntax for unions requires Python 3.10
Example Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: