Skip to content

Commit f52b729

Browse files
authored
Merge pull request #44 from Loop3D/fix/exports
fix: use python 3.9 compatible typehint
2 parents 1f801e3 + e3c6b48 commit f52b729

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

loopstructural/main/model_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
from collections import defaultdict
13-
from typing import Callable
13+
from typing import Callable, Optional
1414

1515
import geopandas as gpd
1616
import numpy as np
@@ -581,8 +581,8 @@ def export_feature_values_to_geodataframe(
581581
points: np.ndarray,
582582
scalar_type: str = 'scalar',
583583
attributes: 'pd.DataFrame' = None,
584-
crs: str | None = None,
585-
value_field_name: str | None = None,
584+
crs: Optional[str] = None,
585+
value_field_name: Optional[str] = None,
586586
) -> 'gpd.GeoDataFrame':
587587
"""Evaluate a feature on points and return a GeoDataFrame with results.
588588

0 commit comments

Comments
 (0)