Skip to content

Commit be4acee

Browse files
fg-cfhnashif
authored andcommitted
scripts: dts: edtlib: type hints
Adds type hints to functions that were not yet typed. Signed-off-by: Florian Grandel <[email protected]>
1 parent 0f1549c commit be4acee

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
@@ -2093,7 +2093,7 @@ def scc_order(self) -> List[List[Node]]:
20932093
except Exception as e:
20942094
raise EDTError(e)
20952095

2096-
def _process_properties_r(self, root_node, props_node):
2096+
def _process_properties_r(self, root_node: Node, props_node: Node) -> None:
20972097
"""
20982098
Process props_node properties for dependencies, and add those as
20992099
dependencies of root_node. Then walk through all the props_node
@@ -2136,7 +2136,7 @@ def _process_properties_r(self, root_node, props_node):
21362136
continue
21372137
self._process_properties_r(root_node, child)
21382138

2139-
def _process_properties(self, node):
2139+
def _process_properties(self, node: Node) -> None:
21402140
"""
21412141
Add node dependencies based on own as well as child node properties,
21422142
start from the node itself.

0 commit comments

Comments
 (0)