-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
ENH Better error message for check_scalar #22218
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
ENH Better error message for check_scalar #22218
Conversation
It might be better understood to say integer and floating instead of |
Is the only reason we use |
I think yes. |
I updated this PR to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Since this is something that we discussed with @ogrisel, I just wanted to be sure that this is in line with what he was proposing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it.
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Reference Issues/PRs
Follow up to #20724
What does this implement/fix? Explain your changes.
Adjusts the error message to only include the class name and not the
<class _>
part of the str representationCC @glemaitre