Skip to content

Commit ac6ed1d

Browse files
DEBUG: fixed invalid output type hint in CBS.
1 parent c8e17f7 commit ac6ed1d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GeoLlama/calc_by_slice.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
##################################################
2121

2222
import itertools
23+
from typing import Optional
2324
from functools import partial
2425
from pprint import pprint
2526
import multiprocessing as mp
@@ -177,7 +178,7 @@ def generalised_theil_sen_fit(contour_pts: npt.NDArray[any],
177178

178179
def leave_one_out(contour_pts: npt.NDArray[any],
179180
thres: float=0.1,
180-
) -> int | None:
181+
) -> Optional[int]:
181182
"""
182183
Get worst outlier point using leave-one-out (LOO) algorithm
183184

0 commit comments

Comments
 (0)