Skip to content

Commit 3f9e887

Browse files
committed
docstring
Signed-off-by: rakdutta <rakhibiswas@yahoo.com>
1 parent 4af1581 commit 3f9e887

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mcpgateway/services/tag_service.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,13 @@ def _get_tag_id(self, tag) -> str:
263263
264264
Supports legacy string tags and new dict tags with an 'id' field.
265265
Falls back to 'label' or the string representation when 'id' is missing.
266+
267+
Args:
268+
tag: Tag value which may be a string (legacy) or a dict with an
269+
'id' or 'label' key.
270+
271+
Returns:
272+
The normalized tag id as a string.
266273
"""
267274
if isinstance(tag, str):
268275
return tag

0 commit comments

Comments
 (0)