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
The problem here is that import_failed is not reported at a particular line, because it doesn't happen while pyanalyze is visiting the file, but while it's trying to import it. If this error happens, it will essentially make it impossible for pyanalyze to check the rest of the file. I'm not sure that's something I should change, as it's an essential part of pyanalyze that it works by importing the file.
Your last example works because # static analysis: ignore on a line by itself at the beginning of the file ignores the entire file.
So far I found this strange behaviour when trying to silence some
import_failed
error codes. Here is a minimal example:The text was updated successfully, but these errors were encountered: