From 2f48594dc3fa91acc73051b1de3c4a9f6d13ad29 Mon Sep 17 00:00:00 2001 From: David Andrzejewski Date: Tue, 18 Feb 2025 22:09:37 -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 934bedc..0e4aba9 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: Union[str, dict, None] = node_dict + value: Optional[Union[str, dict]] = node_dict for key in keys: if isinstance(value, dict): value = value.get(key)