Skip to content

Commit 6890814

Browse files
committed
scripts: dts: edtlib: type hints
Adds type hints to functions that were not yet typed. Signed-off-by: Florian Grandel <[email protected]>
1 parent 8ec2725 commit 6890814

File tree

1 file changed

+2
-2
lines changed
  • scripts/dts/python-devicetree/src/devicetree

1 file changed

+2
-2
lines changed

scripts/dts/python-devicetree/src/devicetree/edtlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2188,7 +2188,7 @@ def scc_order(self) -> List[List[Node]]:
21882188
except Exception as e:
21892189
raise EDTError(e)
21902190

2191-
def _process_properties_r(self, root_node, props_node):
2191+
def _process_properties_r(self, root_node: Node, props_node: Node) -> None:
21922192
"""
21932193
Process props_node properties for dependencies, and add those as
21942194
dependencies of root_node. Then walk through all the props_node
@@ -2231,7 +2231,7 @@ def _process_properties_r(self, root_node, props_node):
22312231
continue
22322232
self._process_properties_r(root_node, child)
22332233

2234-
def _process_properties(self, node):
2234+
def _process_properties(self, node: Node) -> None:
22352235
"""
22362236
Add node dependencies based on own as well as child node properties,
22372237
start from the node itself.

0 commit comments

Comments
 (0)