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

Add support for next-gen attrs API #9396

Merged
merged 2 commits into from Nov 18, 2020
Merged

Conversation

euresti
Copy link
Contributor

@euresti euresti commented Sep 2, 2020

Description

Adds handlers for attr.define, attr.mutable, and attr.frozen.
Adds support for frozen having a non False default.
Adds support the attrib maker: field
Also includes support for auto_attribs=None which means "auto detect which method to use depending on my class".

Test Plan

Added a couple of simple tests.

@euresti
Copy link
Contributor Author

euresti commented Oct 20, 2020

Hi. The windows failures seem to be not-related to my diff. Is there some other thing necessary to get this looked at?

These include the attr class makers: define, mutable, frozen
And the attrib maker: field

Also includes support for auto_attribs=None which means auto_detect which method of attributes are being used.
@euresti
Copy link
Contributor Author

euresti commented Oct 26, 2020

@ilevkivskyi am I missing anything to get this reviewed?

@msullivan
Copy link
Collaborator

I'm sorry about the delay here. I'm going to merge this, and I hope we can stay on top of this sort of PR in the future, but if you want to drop the attrs plugin in favor of one maintained inside attrs or alternately add mechanisms for disabling the built-in one in favor of an external one, we can figure out the best way to do that.

@msullivan msullivan merged commit 6e99a2d into python:master Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants