-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
&
, |
, and ^
bool stubs incorrect
#1684
Comments
&=
operator needs special treatment when __iand__
doesn't exist&=
broken when __iand__
does not exist
Why is '&=' special? What's different with all other binary operators? |
I just edited it after reading the code in not-11:30 mode, I agree completely now and am not sure why its broken for |
Seems the problem really is that |
Maybe the methods will have to be overloaded or use a type variable, since when calling with an int argument the result is int, whereas when called with bool the result is bool (similar to int/float). |
Closing in favor of python/typeshed#649 |
Not sure why this is, I would assume with the current code that
__and__
would be used as a fallback.should typecheck.
The text was updated successfully, but these errors were encountered: