mirror of
https://github.com/meshtastic/python.git
synced 2025-12-30 11:27:53 -05:00
Fix a pylint error regarding typing.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user