mirror of
https://github.com/kennethreitz/pydantic.git
synced 2026-06-05 23:00:18 +00:00
913025ac3f
* Add tests for nested literals validator * Implement flatten literal in validator * Add test for flatten literal * Add changelog entry * Add test skip markers if not Literal * Refactor: use improved all literals implementation From Github user PrettyWood, see PR https://github.com/samuelcolvin/pydantic/pull/1364 * Add testing for typing module Includes moving corresponding tests. * Remove unnecessary type hint * Move all literals test to test_utils
87 B
87 B
Fix model validation to handle nested literals, e.g. Literal['foo', Literal['bar']].