From 7e84c36406905e8f976571cf0dcf2f3c3e9b5fc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Mon, 2 Nov 2020 14:48:51 +0100 Subject: [PATCH] fix: Docstring improvment based on @chrisinmtown's feedback --- pymisp/api.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pymisp/api.py b/pymisp/api.py index c775fe5..dce3627 100644 --- a/pymisp/api.py +++ b/pymisp/api.py @@ -881,7 +881,10 @@ class PyMISP: return self._check_json_response(response) def search_tags(self, tag_name: str, pythonify: bool = False) -> Union[Dict, List[MISPTag]]: - """Search a tag by name. + """Search for tags by name. Matches substrings (no '%' is required). + In the response, each tag has key 'count' with the number of tagged events + and key 'attribute_count' with the number of tagged attributes. + :param tag_name: Name (can be a part of it) to search """ r = self._prepare_request('GET', f'tags/index/searchall:{tag_name}')