-
-
Notifications
You must be signed in to change notification settings - Fork 32k
dataclasses: implicitly defined __dict__ and __weakref__ slots of inherited classes are ignored. #105866
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
Comments
The fix seems to be simple, _get_slots should yield from ('dict', 'weakref') when no slots are defined. |
ping |
carljm
added a commit
that referenced
this issue
Mar 19, 2024
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <[email protected]> Co-authored-by: Carl Meyer <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 19, 2024
…thonGH-105870) (cherry picked from commit a22d05f) Co-authored-by: Aviel Boag <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <[email protected]> Co-authored-by: Carl Meyer <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Mar 19, 2024
…thonGH-105870) (cherry picked from commit a22d05f) Co-authored-by: Aviel Boag <[email protected]> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <[email protected]> Co-authored-by: Carl Meyer <[email protected]>
This was referenced Mar 19, 2024
ambv
pushed a commit
that referenced
this issue
Mar 19, 2024
…H-105870) (GH-116978) (cherry picked from commit a22d05f) Co-authored-by: Aviel Boag <[email protected]> Co-authored-by: Kirill Podoprigora <[email protected]> Co-authored-by: Carl Meyer <[email protected]>
ambv
pushed a commit
that referenced
this issue
Mar 19, 2024
…H-105870) (GH-116979) (cherry picked from commit a22d05f) Co-authored-by: Aviel Boag <[email protected]> Co-authored-by: Kirill Podoprigora <[email protected]> Co-authored-by: Carl Meyer <[email protected]>
All maint branches merged. Thanks! |
vstinner
pushed a commit
to vstinner/cpython
that referenced
this issue
Mar 20, 2024
…thon#105870) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <[email protected]> Co-authored-by: Carl Meyer <[email protected]>
adorilson
pushed a commit
to adorilson/cpython
that referenced
this issue
Mar 25, 2024
…thon#105870) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <[email protected]> Co-authored-by: Carl Meyer <[email protected]>
diegorusso
pushed a commit
to diegorusso/cpython
that referenced
this issue
Apr 17, 2024
…thon#105870) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Kirill Podoprigora <[email protected]> Co-authored-by: Carl Meyer <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report
The weakref slot is redefined when inherited from a class which didn't specify slots at all (and thus has a dict and weakref slots).
gives the following error:
Linked PRs
The text was updated successfully, but these errors were encountered: