Skip to content

Commit

Permalink
add readonly access to internal component for NovaTagList class
Browse files Browse the repository at this point in the history
  • Loading branch information
atarutin committed May 17, 2024
1 parent 0c3d2f1 commit a22d0e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/nova_tag_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ def __iter__(self):
def __len__(self):
return len(self._list)

@property
def component(self) -> NovaComponent:
"""
Returns associated component
"""
return self._component

def try_add_tag(self, tag: TagReference) -> bool:
"""
Try to add tag to the list if only it matches the
Expand Down

0 comments on commit a22d0e7

Please sign in to comment.