-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Clarify the meaning dataclasses.field(..., hash=False)
#130130
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
I also think it should be changed from:
to
|
Hi @picnixz, I’ve reviewed issue #130130 regarding the unclear documentation for the I’m planning to update the |
Merged. Thanks! |
…thonGH-130324) (cherry picked from commit 47ace53) Co-authored-by: Sabfo <[email protected]>
…thonGH-130324) (cherry picked from commit 47ace53) Co-authored-by: Sabfo <[email protected]>
See https://discuss.python.org/t/unclear-docs-for-dataclasses-field/80716. Currently the docs are:
We can change it to
hash: This can be a bool or None. If true, this field is included in the generated :meth:`~object.__hash__` method. +If false, this field is excluded from the generated :meth:`~object.__hash__` method. If :const:`None` (the default), use the value of compare: this would normally be the expected behavior.
Linked PRs
hash=False
docs indataclasses.field
#130324hash=False
docs indataclasses.field
(GH-130324) #130336hash=False
docs indataclasses.field
(GH-130324) #130337The text was updated successfully, but these errors were encountered: