Skip to content

Commit 7c1785f

Browse files
authored
Fix function docs on orm.Dataset for non-existant upload() method. (#1015)
1 parent abb435a commit 7c1785f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

encord/orm/dataset.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def title(self) -> str:
237237
"""The data title.
238238
239239
The setter updates the custom client metadata. This queues a request for the backend which will be
240-
executed on a call of :meth:`.DataRow.upload`.
240+
executed on a call of :meth:`~encord.orm.dataset.DataRow.save()`.
241241
"""
242242
return self["data_title"]
243243

@@ -251,6 +251,7 @@ def data_type(self) -> DataType:
251251
return DataType.from_upper_case_string(self["data_type"])
252252

253253
@data_type.setter
254+
@deprecated(version="0.1.181")
254255
def data_type(self, value: DataType) -> None:
255256
"""DEPRECATED. Do not this function as it will never update the created_at in the server."""
256257
self["data_type"] = value.to_upper_case_string()
@@ -260,6 +261,7 @@ def created_at(self) -> datetime:
260261
return parse_datetime(self["created_at"])
261262

262263
@created_at.setter
264+
@deprecated(version="0.1.181")
263265
def created_at(self, value: datetime) -> None:
264266
"""DEPRECATED. Do not this function as it will never update the created_at in the server."""
265267
self["created_at"] = value.strftime(DATETIME_STRING_FORMAT)
@@ -287,7 +289,7 @@ def client_metadata(self) -> Optional[MappingProxyType]:
287289
:meth:`~encord.orm.dataset.DataRow.refetch_data()` function.
288290
289291
The setter updates the custom client metadata. This queues a request for the backend which will
290-
be executed on a call of :meth:`.DataRow.upload`.
292+
be executed on a call of :meth:`~encord.orm.dataset.DataRow.save()`.
291293
"""
292294
return MappingProxyType(self["client_metadata"]) if self["client_metadata"] is not None else None
293295

0 commit comments

Comments
 (0)