mirror of
https://github.com/meshtastic/python.git
synced 2026-09-14 22:39:18 -04:00
Fix a pylint error regarding typing.
This commit is contained in:
1 parent
53e40d5aab
commit
c7c3c69fc3
1 file changed
+1
-1
@@ -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