diff --git a/sphinx_needs/filter_common.py b/sphinx_needs/filter_common.py index 9b7d6b201..4f28c261f 100644 --- a/sphinx_needs/filter_common.py +++ b/sphinx_needs/filter_common.py @@ -299,7 +299,7 @@ def filter_needs( return found_needs -def need_search(*args, **kwargs): +def need_search(*args: Any, **kwargs: Any) -> bool: return bool(re.search(*args, **kwargs))