Skip to content

Commit

Permalink
scripts: dts: edtlib: type hints
Browse files Browse the repository at this point in the history
Adds type hints to functions that were not yet typed.

Signed-off-by: Florian Grandel <fgrandel@code-for-humans.de>
  • Loading branch information
fg-cfh committed Sep 27, 2024
1 parent da0de6d commit 0b5280c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/dts/python-devicetree/src/devicetree/edtlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2185,7 +2185,7 @@ def scc_order(self) -> List[List[Node]]:
except Exception as e:
raise EDTError(e)

def _process_properties_r(self, root_node, props_node):
def _process_properties_r(self, root_node: Node, props_node: Node):
"""
Process props_node properties for dependencies, and add those as
dependencies of root_node. Then walk through all the props_node
Expand Down Expand Up @@ -2228,7 +2228,7 @@ def _process_properties_r(self, root_node, props_node):
continue
self._process_properties_r(root_node, child)

def _process_properties(self, node):
def _process_properties(self, node: Node) -> None:
"""
Add node dependencies based on own as well as child node properties,
start from the node itself.
Expand Down

0 comments on commit 0b5280c

Please sign in to comment.