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
The following code:
from collections.abc import Callable from typing import Any A = Callable[[Any], Any] B = Callable[[Any, Any], Any] C = A | B
produces the following output:
$ mypy test.py test.py:6:5: error: Unsupported left operand type for | ("object") [operator] C = A | B ^ Found 1 error in 1 file (checked 1 source file)
This looks like a false positive to me.
$ mypy --version mypy 0.961 (compiled: yes) $ python3 --version Python 3.10.4 $ lsb_release -d Description: Ubuntu 22.04 LTS
The text was updated successfully, but these errors were encountered:
Duplicate of #12393
Sorry, something went wrong.
No branches or pull requests
The following code:
produces the following output:
This looks like a false positive to me.
The text was updated successfully, but these errors were encountered: