Skip to content

Commit 148c127

Browse files
authored
Update comment/docstring on function
1 parent 473fd9d commit 148c127

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contentctl/objects/abstract_security_content_objects/detection_abstract.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ class Detection_Abstract(SecurityContentObject):
7474

7575
data_source_objects: list[DataSource] = []
7676

77+
78+
7779
@field_validator("search", mode="before")
7880
@classmethod
7981
def validate_presence_of_filter_macro(cls, value:str, info:ValidationInfo)->str:
@@ -83,15 +85,13 @@ def validate_presence_of_filter_macro(cls, value:str, info:ValidationInfo)->str:
8385
8486
8587
Args:
86-
value (Union[str, dict[str,Any]]): The search. It can either be a string (and should be
87-
SPL or a dict, in which case it is Sigma-formatted.
88+
value (str): The SPL search. It must be an SPL-formatted string.
8889
info (ValidationInfo): The validation info can contain a number of different objects.
8990
Today it only contains the director.
9091
9192
Returns:
92-
Union[str, dict[str,Any]]: The search, either in sigma or SPL format.
93-
"""
94-
93+
str: The search, as an SPL formatted string.
94+
"""
9595

9696
# Otherwise, the search is SPL.
9797

0 commit comments

Comments
 (0)