Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions scripts/dts/python-devicetree/src/devicetree/edtlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1610,8 +1610,8 @@ class Property:
Convenience for spec.name.

description:
Convenience for spec.name with leading and trailing whitespace
(including newlines) removed.
Convenience for spec.description with leading and trailing whitespace
(including newlines) removed. May be None.

type:
Convenience for spec.type.
Expand Down Expand Up @@ -1655,7 +1655,7 @@ def name(self):
@property
def description(self):
"See the class docstring"
return self.spec.description.strip()
return self.spec.description.strip() if self.spec.description else None

@property
def type(self):
Expand Down