Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
deep_iterable
member validator to accept a list of validators (…
…#925) * Add Multiple Validators to deep iterable * Add Tests + Fix some doc strings * Update typing * Limit this PR to only accepting a list of member validators * Respond to PR comments * Commit missing file * Apply suggestions from code review Co-authored-by: Hynek Schlawack <hs@ox.cx> * Split other test too * Fix CI + Remove Weird parens * Use and_ instead of And_ * Add tuple to list of tests Co-authored-by: Hynek Schlawack <hs@ox.cx>
- Loading branch information
1 parent
b754366
commit d0c73d8
Showing
4 changed files
with
71 additions
and
13 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 @@ | ||
``attrs.validators.deep_iterable()``'s *member_validator* argument now also accepts a list of validators and wraps them in an ``attrs.validators.and_()``. |
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