Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.1k
gh-134946 docs: fix formatting in dataclasses.rst#134948
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
python-cla-botbot commentedMay 30, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
9eb96a7
to7f75826
CompareUh oh!
There was an error while loading.Please reload this page.
45ec776
to2d59921
CompareCorrect boolean literals by replacing 'true' with '``True``' for accuracy and consistency.Resolvespythongh-134946
2d59921
to060dd93
CompareThere are similar cases on lines 117, 154 and 155. Would you mind fixing them too? |
The original intent was to differentiate between All of the ones that were changed to "If |
Hi@ericvsmith 👋 , thanks for the clarification. if I understood correctly, then there is only one occurrence to be changed: unsafe_hash: If Is this correct? |
I think the correct change is: if false (the default is |
Note: I already have an open PR for this:#116532 (although not taking the same approach). |
ericvsmith commentedJun 1, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Maybe they should all be rewritten so that they describe the behavior if the flag is set, not ever if the flag has a "falsy" value. Then at the end, put the default value. So they'd all become something like "If true, then <whatever>. The default value is At this point I suggest someone from the documentation group take a look, or just leave it as it is. |
I don't this PR adds anything, would suggest closing. A |
Uh oh!
There was an error while loading.Please reload this page.
Correct boolean literals by replacing 'true' with '
True
' for accuracy and consistency.Fixesgh-134946
📚 Documentation preview 📚:https://cpython-previews--134948.org.readthedocs.build/