I have this code:
import pyqtgraph as pg # Short name cause pyqtgraph is looong
import pyqtgraph.exporters
# ... some code
pg.foo()
pg.exporters.ExportItem(blah)
Now pylint complains about the import pyqtgraph.exporters
saying it is unused import. What is the Pythonic or elegant solution to fix this warning?
Note that without having import pyqtgraph.exporters
, the methods in that submodule cannot be called.