Skip to content

Commit 909f379

Browse files
committed
improved pydoc
1 parent 9caf751 commit 909f379

9 files changed

Lines changed: 20 additions & 22 deletions

File tree

dataikuapi/dss/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def get_object_discussions(self):
243243
"""
244244
Get a handle to manage discussions on the dataset
245245
246-
Returns:
247-
the DSSObjectDiscussions of this dataset
246+
:returns: the handle to manage discussions
247+
:rtype: DSSObjectDiscussions
248248
"""
249249
return DSSObjectDiscussions(self.client, self.project_key, "DATASET", self.dataset_name)

dataikuapi/dss/managedfolder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def get_object_discussions(self):
169169
"""
170170
Get a handle to manage discussions on the managed folder
171171
172-
Returns:
173-
the DSSObjectDiscussions of this managed folder
172+
:returns: the handle to manage discussions
173+
:rtype: DSSObjectDiscussions
174174
"""
175175
return DSSObjectDiscussions(self.client, self.project_key, "MANAGED_FOLDER", self.odb_id)

dataikuapi/dss/notebook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_object_discussions(self):
5555
"""
5656
Get a handle to manage discussions on the notebook
5757
58-
Returns:
59-
the DSSObjectDiscussions of this notebook
58+
:returns: the handle to manage discussions
59+
:rtype: DSSObjectDiscussions
6060
"""
6161
return DSSObjectDiscussions(self.client, self.project_key, "JUPYTER_NOTEBOOK", self.notebook_name)

dataikuapi/dss/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,8 @@ def get_object_discussions(self):
756756
"""
757757
Get a handle to manage discussions on the project
758758
759-
Returns:
760-
the DSSObjectDiscussions of this project
759+
:returns: the handle to manage discussions
760+
:rtype: DSSObjectDiscussions
761761
"""
762762
return DSSObjectDiscussions(self.client, self.project_key, "PROJECT", self.project_key)
763763

dataikuapi/dss/recipe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ def get_object_discussions(self):
8484
"""
8585
Get a handle to manage discussions on the recipe
8686
87-
Returns:
88-
the DSSObjectDiscussions of this recipe
87+
:returns: the handle to manage discussions
88+
:rtype: DSSObjectDiscussions
8989
"""
9090
return DSSObjectDiscussions(self.client, self.project_key, "RECIPE", self.recipe_name)
9191

dataikuapi/dss/savedmodel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def get_object_discussions(self):
105105
"""
106106
Get a handle to manage discussions on the saved model
107107
108-
Returns:
109-
the DSSObjectDiscussions of this saved model
108+
:returns: the handle to manage discussions
109+
:rtype: DSSObjectDiscussions
110110
"""
111111
return DSSObjectDiscussions(self.client, self.project_key, "SAVED_MODEL", self.sm_id)

dataikuapi/dss/scenario.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ def get_object_discussions(self):
163163
"""
164164
Get a handle to manage discussions on the scenario
165165
166-
Returns:
167-
the DSSObjectDiscussions of this scenario
166+
:returns: the handle to manage discussions
167+
:rtype: DSSObjectDiscussions
168168
"""
169169
return DSSObjectDiscussions(self.client, self.project_key, "SCENARIO", self.id)
170170

dataikuapi/dss/wiki.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def get_object_discussions(self):
188188
"""
189189
Get a handle to manage discussions on the article
190190
191-
:returns: the discussion handle for this article
191+
:returns: the handle to manage discussions
192192
:rtype: DSSObjectDiscussions
193193
"""
194194
return DSSObjectDiscussions(self.client, self.project_key, "ARTICLE", self.article_id)

dataikuapi/dssclient.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -712,13 +712,11 @@ def get_object_discussions(self, project_key, object_type, object_id):
712712
"""
713713
Get a handle to manage discussions on any object
714714
715-
Args:
716-
the object project key
717-
the object type
718-
the object id
719-
720-
Returns:
721-
the DSSObjectDiscussions of this object
715+
:param str project_key: identifier of the project to access
716+
:param str object_type: DSS object type
717+
:param str object_id: DSS object ID
718+
:returns: the handle to manage discussions
719+
:rtype: DSSObjectDiscussions
722720
"""
723721
return DSSObjectDiscussions(self, project_key, object_type, object_id)
724722

0 commit comments

Comments
 (0)