Incorrectly suggesting removal of module used in `TYPE_CHECKING`
ntjess opened this issue · 1 comments
ntjess commented
from qtpy import QtCore
import typing as t
if t.TYPE_CHECKING:
from PySide6 import QtCore
class MyThread(QtCore.QThread):
pass
In this example, unimport
suggests getting rid of the first QtCore
import, but this causes the code to fail.
Tested on unimport 1.2.1
hakancelikdev commented
Thanks for letting me know, I'll work on it.