Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With attrs 17.4.0, "convert" is deprecated in favor of "converter" #39

Closed
mattsb42-aws opened this issue Jan 10, 2018 · 0 comments
Closed

Comments

@mattsb42-aws
Copy link
Member

Problem

The attr.ib(convert=callable) option is now deprecated in favor of attr.ib(converter=callable).

This is done to achieve consistency with other noun-based arguments like validator.

convert will keep working until at least January 2019 while raising a DeprecationWarning.

https://github.com/python-attrs/attrs/blob/master/CHANGELOG.rst#deprecations

Reported on the AWS forums: https://forums.aws.amazon.com/thread.jspa?threadID=271087

Solution

We'll need to rename each use of "convert" to "converter" and bump requirements to attrs >= 17.4.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant