Skip to content

Commit

Permalink
fix: tuple not subscriptable (old Python)
Browse files Browse the repository at this point in the history
  • Loading branch information
M0r13n committed Dec 28, 2023
1 parent 57edd7d commit fcf3c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyais/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# Type Aliases for readability
AIS_STREAM = typing.Generator[pyais.AISSentence, None, None]
FILTER_FUNCTION = typing.Callable[[pyais.AISSentence], bool]
LAT_LON = tuple[float, float] # Tuple type for latitude and longitude
LAT_LON = typing.Tuple[float, float] # Tuple type for latitude and longitude


def haversine(latLon1: LAT_LON, latLon2: LAT_LON) -> float:
Expand Down

0 comments on commit fcf3c7d

Please sign in to comment.