From b22734ad513ed2f97e14e2c4a72eaa3a2c2a6d44 Mon Sep 17 00:00:00 2001 From: Junzi Sun Date: Sun, 25 Aug 2024 12:37:37 +0200 Subject: [PATCH] fix typing --- pyModeS/decoder/adsb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyModeS/decoder/adsb.py b/pyModeS/decoder/adsb.py index ad38009..1c899ce 100644 --- a/pyModeS/decoder/adsb.py +++ b/pyModeS/decoder/adsb.py @@ -424,7 +424,7 @@ def nic_v1(msg: str, NICs: int) -> tuple[int, None | float, None | float]: return NIC, Rc, VPL -def nic_v2(msg: str, NICa: int, NICbc: int) -> tuple[int, int | None]: +def nic_v2(msg: str, NICa: int, NICbc: int) -> tuple[int | None, int | None]: """Calculate NIC, navigation integrity category, for ADS-B version 2 Args: @@ -458,7 +458,7 @@ def nic_v2(msg: str, NICa: int, NICbc: int) -> tuple[int, int | None]: Rc = uncertainty.NICv2[NIC][NICs]["Rc"] except KeyError: - NIC = None + NIC = uncertainty.NA Rc = uncertainty.NA return NIC, Rc # type: ignore