-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
builtins.sum
: Spurious error for operands having __add__
defined using partialmethod
#7739
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
Comments
builtins.sum
: Spurious error for operand error having __add__
defined using partialmethod
builtins.sum
: Spurious error for operands having __add__
defined using partialmethod
It appears that this is a regression. mypy 0.942 does not object to the code in the OP. |
This still (unsurprisingly) reproduces after the recent changes to the
The reason why there's now an error where previously there was none is almost certainly due to changes made in typeshed Lines 1664 to 1665 in 1828ba2
|
I agree with @AlexWaygood. The output hasn't changed much with mypy 1.11.2. A |
Here's a minimal reproducer:
And the commands to reproduce it:
Related #7735, #7578
The text was updated successfully, but these errors were encountered: