Repository navigation
MRG: Better error message for bad tags in Report, and allow tags to be a string - #10183
Conversation
|
Errors are real |
|
Yes yes, I didn't touch any tests so far, wanted to wait for @jasmainak's opinion first :) |
|
yes, looks good! I didn't see the error, mainly the docstring which you said was already fixed. Also any objection to allowing |
|
Yes, can do! Are you okay with the decision to not support spaces in tags? I think supporting those would make our developer life more complicated 😅 |
|
sure! I guess if you can add a phrase to the error message that says spaces are unsupported so the user knows what characters are incorrect |
Don't forget to mark "Ready for review", too |
|
It's not yet ready though 😅 |
85e1bd4 to
fe3e68c
Compare
| raise TypeError( | ||
| f'tags must be a collection of str, but got {type(tags)} ' | ||
| f'instead: {tags}' | ||
| f'tags must be a string (without spaces) or an array-like object ' |
There was a problem hiding this comment.
Whoops, looks like the parenthetical (without spaces) should actually go down around line 297. Also I guess it should list the characters ' ', '"', '\n' since it's not just spaces
|
Thx @hoechenberger |
Fixes #10164
@jasmainak would this already improve things for you a bit?