Thanks to visit codestin.com
Credit goes to github.com

Skip to content

MNT: Adjust for upcoming numpy repr changes #26467

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

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

ksunden
Copy link
Member

@ksunden ksunden commented Aug 7, 2023

PR summary

Converts some % format strings into f-strings.

This is needed because of numpy/numpy#22449, which makes numpy scalars have a repr with e.g. np.float64(3.0) rather than just 3.0.
Thus the !r/!a was left off in the conversion to f-string as that is the actual required change.

closes #26460 xref #26422

PR checklist

@ksunden ksunden changed the title Adjust for upcoming numpy repr changes MNT: Adjust for upcoming numpy repr changes Aug 7, 2023
@ksunden ksunden added this to the v3.8.0 milestone Aug 7, 2023
Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anyone can merge on CI green.

@ksunden ksunden merged commit e4905bf into matplotlib:main Aug 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TST] Upcoming dependency test failures
3 participants