Skip to content

Commit e5ea71d

Browse files
author
Val Brodsky
committed
Update docstrings
1 parent 9cc14e5 commit e5ea71d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libs/labelbox/src/labelbox/schema/dataset.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ def data_rows(
124124

125125
def create_data_row(self, items=None, **kwargs) -> "DataRow":
126126
""" Creates a single DataRow belonging to this dataset.
127-
Now users upsert
128127
>>> dataset.create_data_row(row_data="http://my_site.com/photos/img_01.jpg")
129128
130129
Args:
@@ -139,7 +138,7 @@ def create_data_row(self, items=None, **kwargs) -> "DataRow":
139138
in `kwargs`.
140139
InvalidAttributeError: in case the DB object type does not contain
141140
any of the field names given in `kwargs`.
142-
141+
ResourceCreationError: If data row creation failed on the server side.
143142
"""
144143
file_upload_thread_count = 1
145144
args = items if items is not None else kwargs
@@ -184,8 +183,7 @@ def create_data_rows_sync(
184183
None. If the function doesn't raise an exception then the import was successful.
185184
186185
Raises:
187-
ResourceCreationError: Errors in data row upload
188-
InvalidQueryError: If the `items` parameter does not conform to
186+
ResourceCreationError: If the `items` parameter does not conform to
189187
the specification in Dataset._create_descriptor_file or if the server did not accept the
190188
DataRow creation request (unknown reason).
191189
InvalidAttributeError: If there are fields in `items` not valid for

0 commit comments

Comments
 (0)