Some annotations for quantities

This commit is contained in:
Xavier Olive 2023-06-14 22:50:33 +02:00 committed by GitHub
parent 8e2051af68
commit b1f8f6ed62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
from typing import TypedDict from typing import TypedDict
from typing_extensions import Annotated
from .decode import flarm as flarm_decode from .decode import flarm as flarm_decode
@ -10,8 +11,8 @@ class DecodedMessage(TypedDict):
icao24: str icao24: str
latitude: float latitude: float
longitude: float longitude: float
altitude: int altitude: Annotated[int, "m"]
vertical_speed: float vertical_speed: Annotated[float, "m/s"]
groundspeed: int groundspeed: int
track: int track: int
type: str type: str