extracting the dataclasses issue mentioned in https://github.com/python/cpython/issues/124937#issuecomment-2395064821 into its own issue <!-- gh-linked-prs --> ### Linked PRs * gh-125005 <!-- /gh-linked-prs -->