Fix a pylint error regarding typing.

This commit is contained in:
David Andrzejewski
2025-02-18 22:08:26 -05:00
parent 53e40d5aab
commit c7c3c69fc3

View File

@@ -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)