-
-
Notifications
You must be signed in to change notification settings - Fork 19.4k
EHN: handle frozenset in pprint #60828
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
EHN: handle frozenset in pprint #60828
Conversation
|
Only 1 test failing in the cleaning up process. Bet it would go away if we rerun it. |
mroeschke
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v3.0.0.rst is the appropriate place for the whatsnew note
|
@mroeschke whatsnew added |
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
|
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
|
Thanks again @quangngd |
wjandrea
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I open a new PR to fix this?
| assert printing.pprint_thing(MyMapping()) == "{'a': 4, 'b': 4}" | ||
|
|
||
| def test_repr_frozenset(self): | ||
| assert printing.pprint_thing(frozenset([1, 2])) == "frozenset(1, 2)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The output should have braces: frozenset({1, 2})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I opened #60867
doc/source/whatsnew/vX.X.X.rstfile if fixing a bug or adding a new feature.