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 control to generate __[sg]etstate__ #642

Merged
merged 3 commits into from
May 11, 2020
Merged

Conversation

hynek
Copy link
Member

@hynek hynek commented Apr 28, 2020

Pass getstate_setstate to attr.s to control the generation. Mostly interesting for disabling it in slotted classes that received autogenerated __getstate__ and __setstate__ by default until now.

Here we go @andhus – how does this look to you?

Fixes #512,#513

@hynek hynek added this to the 20.1.0 milestone Apr 28, 2020
@andhus
Copy link
Contributor

andhus commented Apr 28, 2020

LGTM 👍

hynek and others added 2 commits May 2, 2020 14:05
Pass *getstate_setstate* to attr.s to control the generation.  Mostly
interesting for disabling it in slotted classes.

Fixes #512,#513
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.

Support custom __getstate__, __setstate__ for slotted classes (or improve docs)?
2 participants