attrs/changelog.d
Hynek Schlawack f5683b852b
converters: allow wrapping and passing self and fields (#1267)
* converters: allow wrapping & takes_self

* Add takes field

* Add news fragment

* Refactor name and call creation

* Make argument names more idiomatic

* Add missing hints

* Make 3-arg converters zero-overhead at runtime

* Remove unnecessary changes

* More idiomatic name

* Explain method

* Make pickle test more meaningful

* Add unit tests for fmt_converter_call

* Check our eq works too

* Convert Converter docstring to Napoleon

* Fix rebase fubar

* Add ~types~

* Comment out failing mypy tests for now

* Fix mypy tests

* Add warning

* Add narrative docs

* Fix converter overloads, add tests

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: Tin Tvrtković <tinchester@gmail.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-28 13:55:24 +00:00
..
1221.change.md Update 1221.change.md 2024-01-07 08:13:27 +01:00
1234.change.md Tweak stubs for better VS Code import (#1234) 2024-02-04 06:00:30 +00:00
1253.change.md Preserve AttributeError in slotted classes with cached_property (#1253) 2024-04-02 04:57:25 +00:00
1263.deprecation.md Deprecate attr.s's repr_ns (#1263) 2024-03-16 15:55:37 +00:00
1264.breaking.md evolve: remove support for passing instances per kw (#1264) 2024-03-16 18:23:17 +00:00
1265.breaking.md Remove attrs.validators.provides (#1265) 2024-03-16 21:15:47 +00:00
1267.change.md converters: allow wrapping and passing self and fields (#1267) 2024-07-28 13:55:24 +00:00
1268.breaking.md Remove non-version metadata hack (#1268) 2024-03-18 15:19:38 +01:00
1285.change.md make_class(): Add "__annotations_" to generated class (#1285) 2024-07-13 10:52:46 +00:00
1303.change.md Add `attrs.validators.or_` validator (#1303) 2024-07-17 12:01:41 +00:00
1310.breaking.md Speed up __eq__ (#1310) 2024-07-21 09:53:35 +00:00
towncrier_template.md.jinja Add missing empty lines to changelog btw releases 2024-05-27 20:11:05 +02:00