Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: validation on model attribute with nested Literal breaks (#1364)
* 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 #1364 * Add testing for typing module Includes moving corresponding tests. * Remove unnecessary type hint * Move all literals test to test_utils
- Loading branch information
Showing
5 changed files
with
81 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Fix model validation to handle nested literals, e.g. `Literal['foo', Literal['bar']]`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters