attrs/changelog.d
Filipe Brandenburger e21793e90a
Allow converter.optional to take a Converter such as converter.pipe as its argument (#1372)
* Allow converter.optional to take a converter such as converter.pipe as its argument

* Only turn optional into a Converter if needed

* Move call to Converter constructor to the end of optional()

The constructor consumes __annotations__, so move the constructor call to after those have been set on the optional_converter function

* Update tests/test_converters.py

* Update tests/test_converters.py

---------

Co-authored-by: Hynek Schlawack <hs@ox.cx>
2024-11-17 11:15:26 +00:00
..
1340.breaking.md Drop Python 3.7 (#1340) 2024-08-29 17:35:04 +02:00
1365.change.md allow __suppress_context__ and __notes__ to be mutated on frozen exceptions (#1365) 2024-10-26 11:20:44 +00:00
1372.change.md Allow converter.optional to take a Converter such as converter.pipe as its argument (#1372) 2024-11-17 11:15:26 +00:00
towncrier_template.md.jinja Add missing empty lines to changelog btw releases 2024-05-27 20:11:05 +02:00