attrs/tests
Lanqing Huang c4c6fdd658
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>
2023-04-14 08:54:31 +00:00
..
__init__.py Apply SPDX IDs 2021-12-27 09:29:09 +01:00
attr_import_star.py pre-commit autoupdate, add yesqa 2022-08-01 10:09:13 +02:00
dataclass_transform_example.py Fix @frozen typing to work on PEP-681 checkers (#1084) 2023-01-12 07:22:13 +01:00
strategies.py Drop Python 2.7 (#936) 2022-03-21 08:47:47 +01:00
test_3rd_party.py Drop Python 2.7 (#936) 2022-03-21 08:47:47 +01:00
test_abc.py Add unstable Python 3.12 to CI allowing failures (#1033) 2022-12-18 10:46:08 +00:00
test_annotations.py Flesh out resolve_types (#1099) 2023-03-18 19:31:15 +01:00
test_cmp.py Drop Python 2.7 (#936) 2022-03-21 08:47:47 +01:00
test_compat.py Remove various obsolete _compat helpers (#941) 2022-03-21 14:03:22 +01:00
test_config.py Drop Python 2.7 (#936) 2022-03-21 08:47:47 +01:00
test_converters.py Drop Python 2.7 (#936) 2022-03-21 08:47:47 +01:00
test_dunders.py Use enum for typing NOTHING (#983) 2022-08-27 17:41:56 +02:00
test_filters.py Add literal string support to include and exclude filters (#1068) 2023-04-14 08:54:31 +00:00
test_funcs.py Raise a deprecation warning when evolve receives insta as a kw arg (#1117) 2023-04-05 08:33:02 +02:00
test_functional.py Purge stale Python 2/3 mentions 2022-12-18 10:54:37 +01:00
test_hooks.py Add Attribute.alias (#950) 2022-11-30 14:39:57 +00:00
test_import.py Drop Python 2.7 (#936) 2022-03-21 08:47:47 +01:00
test_init_subclass.py Replace omnipresent pytest.mark.parametrize("(slots|frozen)" w/ fixture (#1002) 2022-08-11 09:35:39 +02:00
test_make.py First pass over generics (#1079) 2023-02-05 13:56:45 +01:00
test_mypy.yml Fix for new Mypy (#1111) 2023-03-12 05:26:36 +01:00
test_next_gen.py Added `type` parameter to `attrs.field()` function (#1107) 2023-04-03 14:40:45 +00:00
test_packaging.py Drop 3.6 & switch to 100% static packaging configuration (#993) 2023-01-11 16:50:27 +01:00
test_pattern_matching.py Drop Python 2.7 (#936) 2022-03-21 08:47:47 +01:00
test_pyright.py Fix @frozen typing to work on PEP-681 checkers (#1084) 2023-01-12 07:22:13 +01:00
test_setattr.py Purge stale Python 2/3 mentions 2022-12-18 10:54:37 +01:00
test_slots.py Fix backward compatibility with pickles before v22.2.0 (#1085) 2023-01-25 06:58:31 +00:00
test_utils.py Make tests for simple-class actually run 2022-08-22 10:54:22 +02:00
test_validators.py Deprecate zope-interface support (#1120) 2023-04-10 15:34:38 +02:00
test_version_info.py Drop Python 2.7 (#936) 2022-03-21 08:47:47 +01:00
typing_example.py Add literal string support to include and exclude filters (#1068) 2023-04-14 08:54:31 +00:00
utils.py Add Attribute.alias (#950) 2022-11-30 14:39:57 +00:00