Some annotations for quantities
This commit is contained in:
parent
8e2051af68
commit
b1f8f6ed62
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user