There is a QGIS plugin based on the PyQGIS/PyQt code with some imports defined in the beginning:
from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * from qgis.core import * from qgis.utils import * from qgspasswordlineedit import QgsPasswordLineEdit
Due to my personal desire and the Zen of Python, I would like to make my imports explicit instead of implicit. How can I implement that?
So, instead of the
from qgis.core import * it should be
from qgis.core import QgsProject, QgsVectorLayer, QgsDataSourceUri, QgsCoordinateReferenceSystem, Qgis.
I did the above attempt manually, maybe there is an automated way. Perhaps, I can solve it with my IDLE - PyCharm.
I am aware that this is a pure StackOverflow question, however, there might be some PyQGIS/PyQt tricks for my issue available.