unimport
unimport copied to clipboard
Incorrectly suggesting removal of module used in `TYPE_CHECKING`
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
Thanks for letting me know, I'll work on it.