Skip to content

attrs, dataclasses: don't enforce slots when base doesn't#15976

Merged
sobolevn merged 1 commit intopython:masterfrom
ikonst:fix-dataclass-slots-from-non-slots
Aug 28, 2023
Merged

attrs, dataclasses: don't enforce slots when base doesn't#15976
sobolevn merged 1 commit intopython:masterfrom
ikonst:fix-dataclass-slots-from-non-slots

Conversation

@ikonst
Copy link
Copy Markdown
Contributor

@ikonst ikonst commented Aug 28, 2023

Doing the same thing we do for regular classes.

Fixes #15975

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@sobolevn sobolevn merged commit 010da0b into python:master Aug 28, 2023
@ikonst ikonst deleted the fix-dataclass-slots-from-non-slots branch August 28, 2023 11:08
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.

attrs & dataclasses false positive error with slots=True when subclassing from non-slots base class

2 participants