Skip to content

Clear __setattr__ if it was inherited && written by us#663

Merged
hynek merged 1 commit intomasterfrom
restore-setattr
Aug 13, 2020
Merged

Clear __setattr__ if it was inherited && written by us#663
hynek merged 1 commit intomasterfrom
restore-setattr

Conversation

@hynek
Copy link
Member

@hynek hynek commented Aug 4, 2020

Fixes #661

Since the frozen behavior was deliberate, the changes should only affect new on_setattr code.

This is the final PR before 20.1.0.

I hope we can ship 20.2.0 with import attrs, equality, and maybe better serialization soon after.

@hynek hynek force-pushed the restore-setattr branch from b52c518 to a216e0c Compare August 4, 2020 14:28
Signed-off-by: Hynek Schlawack <hs@ox.cx>
@hynek
Copy link
Member Author

hynek commented Aug 13, 2020

👯 nobody cares 👯

@hynek hynek merged commit 106c33c into master Aug 13, 2020
@hynek hynek deleted the restore-setattr branch August 13, 2020 11:49
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.

Restore __setattr__ when subclassing and we didn't write a new __setattr__

1 participant