PY-77891 "Unused import" inspection is inconsistent in nightly

The logic for disabling the unused warning on unresolved imports was dependent on the visit order. Moving sustracting unresolved imports to the end of computation fixes the problem.


(cherry picked from commit adeb85e59c17261a5bf9f64dfb4a7836a2403f43)

IJ-CR-153189

GitOrigin-RevId: fac4173a0fac5b29be9301f9d5f04fed08cceff1
This commit is contained in:
Andrey Vokin
2025-01-14 22:29:14 +01:00
committed by intellij-monorepo-bot
parent 42ba97ccd8
commit db6d06207c
3 changed files with 27 additions and 2 deletions

View File

@@ -0,0 +1,4 @@
import <error descr="No module named 'unresolved1'">unresolved1</error>
import <error descr="No module named 'unresolved2'">unresolved2</error>
import <error descr="No module named 'unresolved3'">unresolved3</error>
<warning descr="Unused import statement 'import os'">import os</warning>