Skip to content

Commit 9432439

Browse files
authored
fix docstring for add_attribute in annotations.py (#3324)
1 parent 06c6a74 commit 9432439

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

timesketch/models/annotations.py

+9-6
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def labels(self):
122122
def add_label(self, label, user=None):
123123
"""Add a label to an object.
124124
125-
Each entry can have multible labels.
125+
Each entry can have multiple labels.
126126
127127
Args:
128128
label: Name of the label.
@@ -255,7 +255,7 @@ def remove_comment(self, comment_id):
255255
return False
256256

257257
def get_comment(self, comment_id):
258-
"""Retrives a comment.
258+
"""Retrieves a comment.
259259
260260
Args:
261261
comment_id: Id of the comment.
@@ -382,13 +382,16 @@ def genericattributes(self):
382382
return relationship(self.GenericAttribute)
383383

384384
def add_attribute(self, name, value, ontology=None, user=None, description=None):
385-
"""Add a label to an object.
385+
"""Add a attribute to an object.
386386
387-
Each entry can have multible labels.
387+
Each entry can have multiple generic attributes.
388388
389389
Args:
390-
label: Name of the label.
391-
user: Optional user that adds the label (sketch.User).
390+
name: Name of the attribute.
391+
value: Value of the attribute.
392+
ontology: Optional ontology of the attribute.
393+
user: Optional user that adds the attribute (timesketch.models.user.User).
394+
description: Optional description of the attribute.
392395
"""
393396
self.genericattributes.append(
394397
self.GenericAttribute(

0 commit comments

Comments
 (0)