From c7c3c69fc3bd045b358aca2da4cd579771b10ca9 Mon Sep 17 00:00:00 2001 From: David Andrzejewski Date: Tue, 18 Feb 2025 22:08:26 -0500 Subject: [PATCH] Fix a pylint error regarding typing. --- meshtastic/mesh_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/mesh_interface.py b/meshtastic/mesh_interface.py index 3d527ac..934bedc 100644 --- a/meshtastic/mesh_interface.py +++ b/meshtastic/mesh_interface.py @@ -284,7 +284,7 @@ class MeshInterface: # pylint: disable=R0902 logging.debug("getNestedValue was called without a nested path.") return None keys = key_path.split(".") - value = node_dict + value: Union[str, dict, None] = node_dict for key in keys: if isinstance(value, dict): value = value.get(key)