-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
option with bool type #1287
Comments
I've tracked this down to Line 1573 in c6042bf
in this case type is not None , it's bool , so the condition is failing and self.is_bool_flag incorrectly gets set to False .
I can't immediately see why this is there (it just looks wrong at first glance). But blame says that line of code is 5 years old, which suggests there's more to it... |
I am working on a click helper library (https://github.com/Cologler/click-anno-python), so I was did a lot of tests for click. |
I think this is there because the |
Huh, I’d have thought using the |
Taking a look at this |
Checked the Discord, it looks like KP has got it |
Same here. |
for #1287: allow bool type with bool flags
The Line 1780 in 9cfa961
|
is ok, but
will raise a TypeError: Got secondary option for non boolean flag.
The text was updated successfully, but these errors were encountered: