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
Recursive model: maximum recursion depth exceeded #1370
Comments
I don't think there's currently a solution for this. The most relevant discussion to this is #659, though I wouldn't all this a duplicate since that's specific to The short answer is that pydantic doesn't (yet) have any solution for detecting and coping with circular references. If you have a suggestion of a solution, please comment on #659 or submit a demo PR. I have no idea off the top of my head, how hard it would be to use the same approach for |
Bug
RecursionError: maximum recursion depth exceeded while calling a Python object
I get this error message, when using recursive models.
Using
does not make a difference aswell.
Issue #531 did not have any clue on how to solve this. The docs don't cover the usage with lists.
Hope you understand my issue here 😄
Output of
python -c "import pydantic.utils; print(pydantic.utils.version_info())"
:EDIT:
Just saw that the issue is pointed to in #524, but there is no response. Maybe there is a solution for it now?
The text was updated successfully, but these errors were encountered: