Skip to content

Commit e03b102

Browse files
committed
modify @internal_properties behavior
they are no longer overwritten in subclasses, rather they add onto the already present ones (inherited from the relative superclass)
1 parent 5c2ef07 commit e03b102

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pylasu/model/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class internal_property(property):
1414

1515
def internal_properties(*props: str):
1616
def decorate(cls: type):
17-
cls.__internal_properties__ = [*Node.__internal_properties__, *props]
17+
cls.__internal_properties__ = getattr(cls, "__internal_properties__", []) + [*Node.__internal_properties__, *props]
1818
return cls
1919
return decorate
2020

0 commit comments

Comments
 (0)