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
Describe the bug
I'm trying to pass a custom error message to a custom check that I have however I get an error that the error message has multiple arguments. This was previous possible before this commit #1574.
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandera.
(optional) I have confirmed this bug exists on the main branch of pandera.
Reproduced the bug on every version since 0.19.0b2. This example works from 0.19.0b1 and below without any issues.
And 0.19.0b2 requires pyspark to be installed.
) is leading to this error. Keyword arguments error and check_kwargs overlap. The error parameter is computed inside check_method like its hardcoded. But as I see, it should fall to this value if only the error parameter is not present in kwargs. Otherwise, it can't be changed.
Describe the bug
I'm trying to pass a custom error message to a custom check that I have however I get an error that the error message has multiple arguments. This was previous possible before this commit #1574.
Code Sample, a copy-pastable example
This produces this error message
Expected behavior
Expected the check to raise the custom error message as this is the standard behavior in the built in checks https://pandera.readthedocs.io/en/stable/reference/generated/pandera.api.checks.Check.html
I'd really like to have this be the same with custom checks as I'd like the checks to be easier to understand.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: