-
-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add literal string support to include and exclude filters (#1068)
* Add literal string support to includer and exclude filters * Add docs and changelog for new feature * Fix typo in `typing_example` * Add a note to document typo issues while using literal name strings as filter args * Add more docs * Add code mark for `AttributeError` * Fix grammar error and upgrade `versionchanged` info * Improve docs and examples from hynek's comments * Keep example cases the same * More examples * Apply suggestions from code review Co-authored-by: chrysle <fritzihab@posteo.de> --------- Co-authored-by: Hynek Schlawack <hs@ox.cx> Co-authored-by: chrysle <fritzihab@posteo.de>
- Loading branch information
1 parent
e4c9f27
commit c4c6fdd
Showing
7 changed files
with
75 additions
and
12 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 |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
.pytest_cache | ||
.tox | ||
.vscode | ||
.venv* | ||
build | ||
dist | ||
docs/_build | ||
|
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.filters.exclude()` and `attrs.filters.include()` now support the passing of attribute names as strings. |
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
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