fix typing

This commit is contained in:
Junzi Sun 2024-08-25 12:45:24 +02:00
parent 2f5dbdf08d
commit fdfa2b3fab

View File

@ -455,11 +455,9 @@ def nic_v2(msg: str, NICa: int, NICbc: int) -> tuple[int | None, int | None]:
try: try:
if isinstance(NIC, dict): if isinstance(NIC, dict):
NIC = NIC[NICs] NIC = NIC[NICs]
Rc = uncertainty.NICv2[NIC][NICs]["Rc"] Rc = uncertainty.NICv2[NIC][NICs]["Rc"]
except KeyError: except KeyError:
NIC = uncertainty.NA return None, None
Rc = uncertainty.NA
return NIC, Rc # type: ignore return NIC, Rc # type: ignore