Skip to content
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

RFC: improve formatting consistency in YTException error messages #3920

Merged

Conversation

neutrinoceros
Copy link
Member

PR Summary

I noticed a couple error messages were still refering to stuff that has been deprecated and removed.
While making sure I got all of them, I made some consistency improvements to most YTException messages.

Mostly, I'm using the !r formatter to ensure consistent quoting for strings instead of hardcoded quotation marks.
Specifically f"{a!r}" is equivalent to repr(a) while f"{a}" (or f"{a!s}") is equivalent to str(a)

@neutrinoceros neutrinoceros added the enhancement Making something better label May 11, 2022
@neutrinoceros neutrinoceros added this to the 4.1.0 milestone May 11, 2022
@neutrinoceros neutrinoceros added the refactor improve readability, maintainability, modularity label May 11, 2022
@matthewturk matthewturk merged commit 58235d9 into yt-project:main May 16, 2022
@neutrinoceros neutrinoceros deleted the enh_custom_errors_formatting branch May 16, 2022 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Making something better refactor improve readability, maintainability, modularity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants