Don't report "expression contains 'Any'" if it's a TypeOfAny.from_error
#12016
Labels
bug
mypy got something wrong
TypeOfAny.from_error
#12016
Uh oh!
There was an error while loading. Please reload this page.
Update
@A5rocks idea about not reporting expression contains
Any
if it'sTypeOfAny.from_error
is based 100. I also realized that if it's<nothing>
it would still complain about attribute access etc being incorrect.Bug Report
The reason being that when you update an overloaded signature you can get hundreds of reported "Expression contains 'Any'" errors, when there are in reality an order of magnitude less actual errors.
But If
TypeOfAny.from_error
s are ignored:Original Title
Invocations of overloaded functions with invalid argument types shouldn't return
Any
it should return<nothing>
The text was updated successfully, but these errors were encountered: