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
I tried this and it didn't work.
discriminator="type" is only allowed in fields that are type of Union[] with more than one option.
Maybe we can define a special pd.Field() but for now I suggest we just put discriminator=TYPE_TAG_STR in the fields that have Unions.
Maybe this will remove the need for
annotate_type()
.Worth a try.
The text was updated successfully, but these errors were encountered: