Skip to content

fixed honoring custom repr for NamedTuple if assigned by partialmethod#14466

Merged
Carreau merged 4 commits intoipython:mainfrom
randolf-scholz:fix_display_namedtuple_partialmethod
Jun 25, 2024
Merged

fixed honoring custom repr for NamedTuple if assigned by partialmethod#14466
Carreau merged 4 commits intoipython:mainfrom
randolf-scholz:fix_display_namedtuple_partialmethod

Conversation

@randolf-scholz
Copy link
Copy Markdown
Contributor

@randolf-scholz randolf-scholz commented Jun 20, 2024

Fixes #14465.

  • added test test_custom_repr_namedtuple_partialmethod

Comment thread IPython/core/tests/test_formatters.py
Comment thread IPython/lib/pretty.py Outdated
@randolf-scholz
Copy link
Copy Markdown
Contributor Author

Seems like the two failing CI pipelines are not related to this PR, they fail on others too: #14451, #14460

@ipython ipython deleted a comment from shingo78 Jun 25, 2024
@Carreau
Copy link
Copy Markdown
Member

Carreau commented Jun 25, 2024

yeah, don't worry about the failures.

@Carreau Carreau added this to the 8.26 milestone Jun 25, 2024
@Carreau Carreau merged commit 0a293a6 into ipython:main Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

display does not honor custom __repr__ for NamedTuple when defined by partialmethod

2 participants