From c5b0748d9a1262a62605e1883106994991d80d05 Mon Sep 17 00:00:00 2001 From: Fred Thomas Date: Wed, 13 Sep 2023 10:51:19 +0100 Subject: [PATCH] try older syntax for type hint --- src/snkit/network.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/snkit/network.py b/src/snkit/network.py index 958acf1..b9cbd5d 100644 --- a/src/snkit/network.py +++ b/src/snkit/network.py @@ -2,6 +2,7 @@ """ import logging import os +from typing import Optional import warnings import geopandas @@ -326,7 +327,7 @@ def _split_edges_at_nodes( return split_edges -def split_edges_at_nodes(network: Network, tolerance: float = 1e-9, chunk_size: int | None = None): +def split_edges_at_nodes(network: Network, tolerance: float = 1e-9, chunk_size: Optional[int] = None): """ Split network edges where they intersect node geometries.