Fix a pylint error regarding typing.

This commit is contained in:
David Andrzejewski
2025-02-18 22:09:37 -05:00
parent c7c3c69fc3
commit 2f48594dc3

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