Skip to content
New issue

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

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

Already on GitHub? # to your account

Use Attribute.alias for init argument names if attrs>= 2022.2 #322

Closed
asford opened this issue Nov 13, 2022 · 0 comments · Fixed by #391
Closed

Use Attribute.alias for init argument names if attrs>= 2022.2 #322

asford opened this issue Nov 13, 2022 · 0 comments · Fixed by #391
Milestone

Comments

@asford
Copy link
Contributor

asford commented Nov 13, 2022

Description

This is a tracking issue, filed from python-attrs/attrs#950.

Once attrs releases 2022.2, the __init__ argument name for all fields will be stored under Attribute.alias.
cattrs should use this property if available, rather than re-executing private name mangling.

@asford asford changed the title cattrs should use Attribute.alias for init argument names if attrs>= 2022.2 Use Attribute.alias for init argument names if attrs>= 2022.2 Nov 13, 2022
@Tinche Tinche mentioned this issue Jul 8, 2023
@Tinche Tinche added this to the 23.2 milestone Jul 8, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants