Skip to content

Commit

Permalink
Fix type to conform with python 3.9 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrrock2 committed Apr 29, 2024
1 parent 6dca735 commit 964191e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gerrychain/graph/graph.py
Expand Up @@ -23,7 +23,7 @@

from .adjacency import neighbors
from .geo import GeometryError, invalid_geometries, reprojected
from typing import List, Iterable, Optional, Set, Tuple
from typing import List, Iterable, Optional, Set, Tuple, Union


def json_serialize(input_object: Any) -> Optional[int]:
Expand Down Expand Up @@ -182,7 +182,7 @@ def from_geodataframe(
cols_to_add: Optional[List[str]] = None,
reproject: bool = False,
ignore_errors: bool = False,
crs_override: Optional[str | int] = None,
crs_override: Optional[Union[str, int]] = None,
) -> "Graph":
"""
Creates the adjacency :class:`Graph` of geometries described by `dataframe`.
Expand Down Expand Up @@ -217,7 +217,7 @@ def from_geodataframe(
:type ignore_errors: bool, optional
:param crs_override: Value to override the CRS of the GeoDataFrame.
Default is None.
:type crs_override: Optional[str | int], optional
:type crs_override: Optional[Union[str,int]], optional
:returns: The adjacency graph of the geometries from `dataframe`.
:rtype: Graph
Expand Down

0 comments on commit 964191e

Please sign in to comment.