You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a real life example, see e.g. optype/numpy/_to.py, which doesn't even import Any, yet there are 62 no-any-explicit errors reported, forcing me to use # mypy: disable-error-code="no-any-explicit".
I don't think it's useful in this case, because the Any is out of your control. I also don't think that it's useful to report the same error about the same Any on multiple occasions. Given the name of the error, I expected it to only be reported once I explicitly write "Any", so that I can actually see that it's there.
I might be wrong here, but I thought that that's also the way that bpr's reportExplicitAny works 🤷🏻
Describe the problem
There's no explicit
Any
here:But the following error is reported:
I'm guessing this is because the type parameters of
slice
default toAny
. But I don't see why such an implicitAny
should be considered as explicit.Gist to reproduce
Severity
annoying but workaround is available
Your Environment
basedmypy 2.9.1 (compiled: yes)
Based on mypy 1.14.1
The text was updated successfully, but these errors were encountered: