Skip to content
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

boolean() to convert 1/0 to bool #928

Open
DavidNemeskey opened this issue Nov 7, 2021 · 0 comments
Open

boolean() to convert 1/0 to bool #928

DavidNemeskey opened this issue Nov 7, 2021 · 0 comments

Comments

@DavidNemeskey
Copy link

ATM the inputs.boolean() function handles the following inputs:

  • bool
  • str: "true", "false", "1", "0"

Since the function already accepts non-string inputs, I think it would make sense to handle the int values 1 and 0 as well (or any int value according to the Python int -> bool conversion rules, for that matter).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant