Merge pull request #151 from junzis/quantities

Some annotations for physical quantities
This commit is contained in:
Junzi Sun 2024-08-25 12:23:36 +02:00 committed by GitHub
commit 08218f558d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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