We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I see error for code:
def func(choice: str, default: str='y') -> bool: values = ('yes', '') if default == 'y' else ('yes',) # error: Unsupported right operand type for in ("object") # values = ('yes', '') if True else ('yes',) # ok (!) return choice in values
Is it a bug? mypy version is 0.641
0.641
The text was updated successfully, but these errors were encountered:
This is a known bug, duplicate of #4975.
Workaround is to use lists instead of tuples (or use # type: ignore on that line to silence mypy).
# type: ignore
Sorry, something went wrong.
No branches or pull requests
I see error for code:
Is it a bug? mypy version is
0.641
The text was updated successfully, but these errors were encountered: