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 03aae18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -257,7 +257,7 @@ class FilterChain:
Chains multiple filters together.
"""

def __init__(self, filters: list[Filter]) -> None:
def __init__(self, filters: typing.List[Filter]) -> None:
"""
Initialize the filter chain with a sequence of filters.
Expand Down

0 comments on commit 03aae18

Please sign in to comment.