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
c7c3c69fc3
commit
2f48594dc3
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: 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)
|
||||
|
||||
Reference in new issue
Block a user