Skip to content

Commit

Permalink
try older syntax for type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-fred committed Sep 13, 2023
1 parent 839d1cf commit c5b0748
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/snkit/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"""
import logging
import os
from typing import Optional
import warnings

import geopandas
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit c5b0748

Please sign in to comment.