core_schema.union_schema
(and possibly others) create schemas with incorrect types
#427
Labels
bug
Something isn't working
Despite this type annotation:
pydantic-core/pydantic_core/core_schema.py
Line 1751 in 9499441
Using the
core_schema.union_schema
produces a schema withtype(schema['choices']) is tuple
:I haven't checked, but I wouldn't be surprised if this behavior was consistent across other functions using the
*args
syntax to accept multiple items.The text was updated successfully, but these errors were encountered: