mirror of
https://github.com/python/cpython
synced 2026-09-28 03:33:18 +03:00
[3.13] gh-118033: Fix __weakref__ not set for generic dataclasses (GH-118099) (#118821)
gh-118033: Fix `__weakref__` not set for generic dataclasses (GH-118099)
(cherry picked from commit fa9b9cb113)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
09896fca2f
commit
632682c0c2
3 changed files with 118 additions and 3 deletions
|
|
@ -0,0 +1,2 @@
|
|||
Fix :func:`dataclasses.dataclass` not creating a ``__weakref__`` slot when
|
||||
subclassing :class:`typing.Generic`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue