Skip to content

Commit 1b737fc

Browse files
committed
Fix lint issue 'F821 undefined name' on geopandas type annotation
ref: #631
1 parent b5a6b4e commit 1b737fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

openeo/udf/udf_signatures.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@
1313
from openeo.udf.udf_data import UdfData
1414
from openeo.udf.xarraydatacube import XarrayDataCube
1515

16+
try:
17+
# Geopandas is an optional dependency, but one of the signatures uses it as type annotation
18+
import geopandas
19+
except ImportError:
20+
pass
21+
1622

1723
def apply_timeseries(series: Series, context: dict) -> Series:
1824
"""

0 commit comments

Comments
 (0)