Skip to content

Commit 03a6dd0

Browse files
committed
Additional documentation
1 parent 550bae0 commit 03a6dd0

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pylasu/model/model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ def provides_nodes(decl_type):
9797

9898

9999
def get_only_type_arg(decl_type):
100+
"""If decl_type has a single type argument, return it, otherwise return None"""
100101
type_args = get_type_arguments(decl_type)
101102
if len(type_args) == 1:
102103
return type_args[0]
@@ -212,8 +213,9 @@ def source(self) -> Optional[Source]:
212213

213214
@internal_property
214215
def properties(self):
215-
return (PropertyDescription(p.name, p.type, p.is_containment, p.is_reference, p.multiplicity,
216-
getattr(self, p.name))
216+
return (PropertyDescription(p.name, p.type,
217+
is_containment=p.is_containment, is_reference=p.is_reference,
218+
multiplicity=p.multiplicity, value=getattr(self, p.name))
217219
for p in self.__class__.node_properties)
218220

219221
@internal_property

0 commit comments

Comments
 (0)