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
First of all - this is awesome.
I ran RangeWidget(1,10,"turns") and it took me some time to understand that it's not working because the third argument is step.
I suggest to check the type of the arguments in widgets.py line 42.
If you agree than I can do it myself and create a PR
Cheers
Yoav
The text was updated successfully, but these errors were encountered:
step, name, default, width, divclass and show_range are all optional keyword arguments. If used in order they don't require a keyword, but if you want to "pick and choose" from them you have to be explicit.
I agree with both your comments. I only suggest that you check the type of the supplied input because if the type is wrong then the error can be swallowed up somewhere inside the mechanism and they whole thing just doesn't work without explicitly failing. For example, if I run range with turns as the third paramter I get an explicit error: TypeError: range() integer step argument expected, got str.
First of all - this is awesome.
I ran
RangeWidget(1,10,"turns")
and it took me some time to understand that it's not working because the third argument isstep
.I suggest to check the type of the arguments in
widgets.py
line 42.If you agree than I can do it myself and create a PR
Cheers
Yoav
The text was updated successfully, but these errors were encountered: