You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems related to how model is constructed in odmantic.model and is raised in Python3.11 due to changes in how types are evaluated from standard lib.
The text was updated successfully, but these errors were encountered:
Bug
When creating a simple model with a field that is the union of two types - it fails to build the model in Python3.11 but passes in Python3.10.
Current Behavior
The Python3.10 output of running just example contains no error.
But when running with Python3.11 - an error is raised about inability to parse the type annotation.
Expected behavior
Python3.11 output should be the same as for Python3.10 - no errors.
Environment
python -c "import pydantic.utils; print(pydantic.utils.version_info())
):Additional context
This seems related to how model is constructed in
odmantic.model
and is raised in Python3.11 due to changes in how types are evaluated from standard lib.The text was updated successfully, but these errors were encountered: