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

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

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

ikonst
Copy link
Contributor

@ikonst ikonst commented Aug 28, 2023

Doing the same thing we do for regular classes.

Fixes #15975

@github-actions
Copy link
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
17 checks passed
@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