mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
80175f3628
* fix: ensure to always return one of the values in `Literal` field type closes #2166 * perf: improve `literal_validator` speed Thanks to @yobiscus * fix: when more options in Literal switch from `set` to `dict` to still have a O(1) complexity Thanks @layday :)
70 B
70 B
fix: ensure to always return one of the values in Literal field type