Skip to content

Commit 08218f5

Browse files
authored
Merge pull request #151 from junzis/quantities
Some annotations for physical quantities
2 parents 8acbdf1 + b1f8f6e commit 08218f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyModeS/decoder/flarm/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from typing import TypedDict
2+
from typing_extensions import Annotated
23

34
from .decode import flarm as flarm_decode
45

@@ -10,8 +11,8 @@ class DecodedMessage(TypedDict):
1011
icao24: str
1112
latitude: float
1213
longitude: float
13-
altitude: int
14-
vertical_speed: float
14+
altitude: Annotated[int, "m"]
15+
vertical_speed: Annotated[float, "m/s"]
1516
groundspeed: int
1617
track: int
1718
type: str

0 commit comments

Comments
 (0)