|
26 | 26 | * *
|
27 | 27 | ***************************************************************************/
|
28 | 28 | """
|
| 29 | + |
29 | 30 | import json
|
30 | 31 | import os
|
31 | 32 | from typing import Optional
|
|
54 | 55 | QgsGeometry,
|
55 | 56 | QgsCoordinateReferenceSystem,
|
56 | 57 | QgsSettings,
|
57 |
| - Qgis, # noqa: F811 |
58 | 58 | QgsAnnotation,
|
59 |
| - QgsCoordinateTransform, Qgis, QgsBlockingNetworkRequest |
| 59 | + QgsCoordinateTransform, |
| 60 | + Qgis, |
| 61 | + QgsBlockingNetworkRequest, |
60 | 62 | )
|
61 | 63 | from qgis.gui import QgsMapCanvasAnnotationItem, QgsCollapsibleGroupBox, QgisInterface
|
62 | 64 | from qgis.PyQt.QtCore import QSizeF, QPointF, QCoreApplication
|
63 | 65 | from qgis.PyQt.QtGui import QTextDocument
|
64 |
| -from qgis.PyQt.QtWidgets import QAction, QDialog, QApplication, QMenu, QMessageBox, QDialogButtonBox, QCompleter |
| 66 | +from qgis.PyQt.QtWidgets import ( |
| 67 | + QAction, |
| 68 | + QDialog, |
| 69 | + QApplication, |
| 70 | + QMenu, |
| 71 | + QMessageBox, |
| 72 | + QDialogButtonBox, |
| 73 | + QCompleter, |
| 74 | +) |
65 | 75 | from qgis.PyQt.QtGui import QColor
|
66 | 76 | from qgis.PyQt.QtWidgets import (
|
67 | 77 | QWidget,
|
@@ -383,9 +393,7 @@ def __init__(self, iface: QgisInterface, parent=None) -> None:
|
383 | 393 |
|
384 | 394 | self.rubber_band = None
|
385 | 395 | # add connection to linedit text change
|
386 |
| - self.geocode_edit.textChanged.connect( |
387 |
| - lambda: self.wait_connect_geocode(self.geocode_edit) |
388 |
| - ) |
| 396 | + self.geocode_edit.textChanged.connect(lambda: self.wait_connect_geocode(self.geocode_edit)) |
389 | 397 |
|
390 | 398 | self.start_geocode_coords = None
|
391 | 399 | self.dest_geocode_coords = None
|
|
0 commit comments