From b1f8f6ed62240fee28d6882b97fc875e17e24c6e Mon Sep 17 00:00:00 2001 From: Xavier Olive <1360812+xoolive@users.noreply.github.com> Date: Wed, 14 Jun 2023 22:50:33 +0200 Subject: [PATCH] Some annotations for quantities --- pyModeS/decoder/flarm/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyModeS/decoder/flarm/__init__.py b/pyModeS/decoder/flarm/__init__.py index 513b0ed..e08125f 100644 --- a/pyModeS/decoder/flarm/__init__.py +++ b/pyModeS/decoder/flarm/__init__.py @@ -1,4 +1,5 @@ from typing import TypedDict +from typing_extensions import Annotated from .decode import flarm as flarm_decode @@ -10,8 +11,8 @@ class DecodedMessage(TypedDict): icao24: str latitude: float longitude: float - altitude: int - vertical_speed: float + altitude: Annotated[int, "m"] + vertical_speed: Annotated[float, "m/s"] groundspeed: int track: int type: str