-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Docs: dataclasses: wrong error documented #106107
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
Labels
docs
Documentation in the Doc dir
Comments
Yeah, there should be a |
rschupp
added a commit
to rschupp/cpython
that referenced
this issue
Jun 26, 2023
😄 #106109 |
ericvsmith
pushed a commit
that referenced
this issue
Jun 26, 2023
…t value for a field is detected (gh-106109)
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 26, 2023
…default value for a field is detected (pythongh-106109) (cherry picked from commit 512f299) Co-authored-by: Roderich Schupp <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 26, 2023
…default value for a field is detected (pythongh-106109) (cherry picked from commit 512f299) Co-authored-by: Roderich Schupp <[email protected]>
Thanks, @rschupp ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documentation
Data Classes - Mutable default values says in the second blockquote
but in the explanantion (two paragraphs down) it notes:
This is inconsistent, in fact a ValueError is raised, cf. https://github.com/python/cpython/blob/e8e59ee474869e7c02e7cae3815c9c2183671b21/Lib/dataclasses.py#L848C1-L853C1
Linked PRs
The text was updated successfully, but these errors were encountered: