diff --git a/ORStools/gui/ORStoolsDialog.py b/ORStools/gui/ORStoolsDialog.py index d17e532f..f705ef4a 100644 --- a/ORStools/gui/ORStoolsDialog.py +++ b/ORStools/gui/ORStoolsDialog.py @@ -29,6 +29,8 @@ import json import os +from typing import Optional + import processing import webbrowser @@ -518,7 +520,9 @@ def _on_clear_listwidget_click(self) -> None: if self.line_tool: self.line_tool.canvas.scene().removeItem(self.line_tool.rubberBand) - def _linetool_annotate_point(self, point: QgsPointXY, idx: int, crs: Optional [QgsCoordinateReferenceSystem]=None) -> QgsAnnotation: + def _linetool_annotate_point( + self, point: QgsPointXY, idx: int, crs: Optional[QgsCoordinateReferenceSystem] = None + ) -> QgsAnnotation: if not crs: crs = self._iface.mapCanvas().mapSettings().destinationCrs()