Skip to content

Commit

Permalink
fix: import typing Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
merydian committed May 10, 2024
1 parent a060502 commit 074e247
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ORStools/gui/ORStoolsDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

import json
import os
from typing import Optional

import processing
import webbrowser

Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 074e247

Please sign in to comment.