Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ def _choice_types() -> tuple[Any, Any]:
Choices as loaded_choices,
)
except ImportError: # pydantic-ai < 2.46.0: build the same schema from an Enum instead
loaded_choice = loaded_choices = None
Choice, Choices = loaded_choice, loaded_choices
Choice = Choices = None
else:
Choice, Choices = loaded_choice, loaded_choices
return Choice, Choices


Expand Down
Loading