Skip to content

Commit b9da074

Browse files
committed
fix: python3.9
1 parent 39d4c99 commit b9da074

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyais/tracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def remove_callback(
194194
"""Remove a callback. Every callback is identified by its event and callback-function."""
195195
self._broker.detach(event, callback)
196196

197-
def update(self, msg: AISSentence | ANY_MESSAGE, ts_epoch_ms: typing.Optional[float] = None) -> None:
197+
def update(self, msg: typing.Union[AISSentence, ANY_MESSAGE], ts_epoch_ms: typing.Optional[float] = None) -> None:
198198
"""Updates a track. If the track does not yet exist, a new track is created.
199199
NOTE: accepts raw AISSentences as well as decoded messages.
200200

0 commit comments

Comments
 (0)