You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[ENH]: Use repr instead of str in the error message #21959
Labeling this as a good first issue as this is a straight forward change that should not bring up any API design issues (yes technically changing the wording of an error message may break someone, but that is so brittle I am not going to worry about that). Will need a test (the new line example is a good one!).
Activity
tacaswell commentedon Dec 15, 2021
Labeling this as a good first issue as this is a straight forward change that should not bring up any API design issues (yes technically changing the wording of an error message may break someone, but that is so brittle I am not going to worry about that). Will need a test (the new line example is a good one!).
tacaswell commentedon Dec 15, 2021
@e5f6bd If you are interested in opening a PR with this change, please have at it!
e5f6bd commentedon Dec 15, 2021
@e5f6bd Thanks, but I'm a bit busy recently, so I'll leave this chance to someone else.
Hashcode-Ankit commentedon Dec 29, 2021
If this issue has not been resolved yet and nobody working on it I would like to try it
story645 commentedon Dec 29, 2021
Looks like #21968 is addressing this issue
Hashcode-Ankit commentedon Dec 29, 2021
yeah but the issue still open
Cloverwave commentedon Jul 1, 2022
Working on this now in axes_.py,
future plans to work on this in all files with error raising.
Cloverwave commentedon Jul 1, 2022
Also converting f strings to template strings where I see them in raised errors
oscargus commentedon Jul 4, 2022
f-string are usually preferred due to speed issues. Which is not critical, but if one can choose, f-strings are not worse.
use `repr` in error message closes matplotlib#21959
use `repr` in error message closes matplotlib#21959
use repr in error message closes matplotlib#21959
Use `repr` in scatter error message (#24403)
Use `repr` in scatter error message (matplotlib#24403)