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
main
Run the below code and building the schema runs forever.
Oddly it doesn't if:
Ham
DiscUnion
from __future__ import annotations as _annotations from pydantic import BaseModel class Foo(BaseModel): f: DiscUnion class Bar(BaseModel): b: DiscUnion class Spam(BaseModel): s: DiscUnion class Egg(BaseModel): e: DiscUnion class Ham(BaseModel): h: DiscUnion DiscUnion = Foo | Bar | Spam | Egg | Ham class Final(BaseModel): d: DiscUnion
Using current main da2173ed6d7065d1f89236824403bf758b86f20d
The text was updated successfully, but these errors were encountered:
2.5.0b1
davidhewitt
Successfully merging a pull request may close this issue.
Initial Checks
Description
Run the below code and building the schema runs forever.
Oddly it doesn't if:
Ham
from the union, still takes a long time but not foreverDiscUnion
to the end of the file, in this case it's very fastExample Code
Python, Pydantic & OS Version
The text was updated successfully, but these errors were encountered: