Skip to content

Commit 6dc1938

Browse files
merydiankoebi
authored andcommitted
refactor: unify qgis.core imports
1 parent cdcd20e commit 6dc1938

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

ORStools/common/isochrones_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030
from typing import Any, Generator
3131

32-
from qgis._core import QgsMapLayer
3332
from qgis.core import (
33+
QgsMapLayer,
3434
QgsPointXY,
3535
QgsFeature,
3636
QgsFields,

ORStools/gui/ORStoolsDialog.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import webbrowser
4545

4646
from qgis.PyQt import uic
47-
from qgis._core import Qgis
4847
from qgis.core import (
4948
QgsProject,
5049
QgsVectorLayer,

ORStools/proc/directions_lines_proc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@
2929

3030
from typing import List, Dict, Generator
3131

32-
from qgis._core import (
32+
from qgis.core import (
3333
QgsFeature,
3434
QgsVectorLayer,
3535
QgsGeometry,
3636
QgsProject,
3737
QgsProcessingParameterBoolean,
38-
)
39-
from qgis.core import (
4038
QgsWkbTypes,
4139
QgsCoordinateReferenceSystem,
4240
QgsProcessing,

ORStools/proc/directions_points_layer_proc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,12 @@
3030
from typing import Dict, List
3131

3232
from qgis.PyQt.QtGui import QIcon
33-
from qgis._core import (
33+
from qgis.core import (
3434
QgsVectorLayer,
3535
QgsFeature,
3636
QgsGeometry,
3737
QgsProject,
3838
QgsProcessingParameterBoolean,
39-
)
40-
from qgis.core import (
4139
QgsWkbTypes,
4240
QgsCoordinateReferenceSystem,
4341
QgsProcessing,

tests/test_gui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from qgis.PyQt.QtWidgets import QLineEdit
2-
from qgis._core import QgsSettings
2+
from qgis.core import QgsSettings
33
from qgis.gui import QgsCollapsibleGroupBox
44
from qgis.testing import unittest
55

0 commit comments

Comments
 (0)