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

Accept _yes_ in the current language as True instance for boolean type hints #537

Open
sveneberth opened this issue Nov 2, 2022 · 1 comment
Labels
feature New feature or request Priority: Low This issue can be considered with enough idle time.

Comments

@sveneberth
Copy link
Member

    Maybe it would be nice to support the _yes_ of the current language.

Not tested yet, but i imagine something like this:

            if inValue.strip().lower() in ("true", "yes", "1", translate("yes")):

Originally posted by @sveneberth in #533 (comment)

@sveneberth sveneberth added feature New feature or request Priority: Low This issue can be considered with enough idle time. labels Nov 2, 2022
@phorward
Copy link
Member

Relates to #840

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request Priority: Low This issue can be considered with enough idle time.
Projects
None yet
Development

No branches or pull requests

2 participants