We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
None
object
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
rwbarton@morphism:~/mypy$ python3 -m mypy --strict-optional -c 'None == None' <string>:1: error: Unsupported left operand type for == (None) rwbarton@morphism:~/mypy$ python3 -m mypy --strict-optional -c 'str(None)' <string>:1: error: No overload variant of "str" matches argument types [builtins.None]
These should not be errors, as the type of None is a subtype of object.
The text was updated successfully, but these errors were encountered:
Interestingly, this first of these errors isn't just a strict optional problem!
$ python3 -m mypy -c 'None == None' <string>:1: error: Unsupported left operand type for == (None)
Sorry, something went wrong.
My renaming of this was incorrect -- currently None is a subtype of object, but object isn't in None's MRO.
Successfully merging a pull request may close this issue.
These should not be errors, as the type of
None
is a subtype ofobject
.The text was updated successfully, but these errors were encountered: