From 500f5b80b875c92ff12e7e6cc5aa4bdf76c7c5b7 Mon Sep 17 00:00:00 2001
From: ldam <ldam@passcal.nmt.edu>
Date: Tue, 19 Sep 2023 12:18:04 -0600
Subject: [PATCH] correct return type hint for create_sample_no_label

---
 .../view/plotting/plotting_widget/plotting_axes.py             | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sohstationviewer/view/plotting/plotting_widget/plotting_axes.py b/sohstationviewer/view/plotting/plotting_widget/plotting_axes.py
index caeff9197..f2eb555f9 100644
--- a/sohstationviewer/view/plotting/plotting_widget/plotting_axes.py
+++ b/sohstationviewer/view/plotting/plotting_widget/plotting_axes.py
@@ -2,6 +2,7 @@ from typing import List, Optional, Dict
 
 import numpy as np
 from matplotlib.axes import Axes
+from matplotlib.text import Text
 from matplotlib.patches import ConnectionPatch, Rectangle
 from matplotlib.ticker import AutoMinorLocator
 from matplotlib import pyplot as pl
@@ -154,7 +155,7 @@ class PlottingAxes:
         return ax
 
     def create_sample_no_label(self, ax: Axes, pos_y: float,
-                               sample_no: int, color: str) -> None:
+                               sample_no: int, color: str) -> Optional[Text]:
         """
         Create label to display sample number
         :param ax: the axes of the label
-- 
GitLab