From a22d0e740b24b37144d0b8b7e69cd6f06396deac Mon Sep 17 00:00:00 2001 From: atarutin Date: Fri, 17 May 2024 15:04:31 +0300 Subject: [PATCH] add readonly access to internal component for NovaTagList class --- core/nova_tag_list.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/nova_tag_list.py b/core/nova_tag_list.py index 27acd9c..28ae18e 100644 --- a/core/nova_tag_list.py +++ b/core/nova_tag_list.py @@ -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