pvalid errors out on validating only one arg
from pyvalid import accepts
import pandas as pd
from pyvalid.validators import NumberValidator
class Mention:
@accepts(object,
overlap_percentage=NumberValidator(min_val=0.0, max_val=1.0)
)
def __init__(self, df: pd.DataFrame, presence_col: str, overlap_percentage=1.2) -> None:
pass
Mention(None,"abc",0.9)
Traceback (most recent call last):
File "example.py", line 14, in
Hey @nagesh-chowdaiah , I'll investigate this issue and prepare unit tests / fixes. Thanks!
Hey @nagesh-chowdaiah ,
In the 38f1d19 commit I've added the unit test based on the example, which you provided. It causes the same exception. I'll try to find the root cause and fix it.
Thanks for informing me about this issue!