Closed draggeta closed 1 year ago
checking if the class isn't an instance of Const and then allowing False as a value would probably fix it.
I'll try to find more elegant solution. However the bug itself is really cool :)
That makes sense as this is a parent class. Thank you for the quick reply btw.
When cloning a Const(False):
I get an error:
This error is caused by the
params
method in theValidator
class inabstract.py
:I don't know what the procedure is for a pull request (or if you'd rather do it yourself), but checking if the class isn't an instance of
Const
and then allowingFalse
as a value would probably fix it.