Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
causasui
· 1y ago · 0 comments
You probably want to use Discriminated Unions
https://docs.pydantic.dev/latest/concepts/unions/#discrimina...
Comments
[–]
jmugan
1y ago
Yeah, I'm doing that