Skip to content

Commit 15f50d1

Browse files
committed
remove rtype / returns for None
1 parent 6134253 commit 15f50d1

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

src/dataverse_sdk/client.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ def update(self, logical_name: str, ids: Union[str, List[str]], changes: Union[D
165165
have equal length for one-to-one mapping.
166166
:type changes: dict or list[dict]
167167
168-
:return: None
169-
:rtype: None
170-
171168
:raises TypeError: If ``ids`` is not str or list[str], or if ``changes`` type doesn't match usage pattern.
172169
173170
.. note::
@@ -213,9 +210,6 @@ def delete(self, logical_name: str, ids: Union[str, List[str]]) -> None:
213210
:param ids: Single GUID string or list of GUID strings to delete.
214211
:type ids: str or list[str]
215212
216-
:return: None
217-
:rtype: None
218-
219213
:raises TypeError: If ``ids`` is not str or list[str].
220214
221215
Example:
@@ -438,9 +432,6 @@ def delete_table(self, tablename: str) -> None:
438432
(e.g. ``"new_SampleItem"``).
439433
:type tablename: str
440434
441-
:return: None
442-
:rtype: None
443-
444435
:raises ~dataverse_sdk.errors.MetadataError: If the table does not exist or deletion fails.
445436
446437
.. warning::
@@ -504,9 +495,6 @@ def upload_file(
504495
``If-Match: *``. Used for small and chunk modes only.
505496
:type if_none_match: bool
506497
507-
:return: None
508-
:rtype: None
509-
510498
:raises ~dataverse_sdk.errors.HttpError: If the upload fails or the file column is not empty
511499
when ``if_none_match=True``.
512500
:raises FileNotFoundError: If the specified file path does not exist.

src/dataverse_sdk/odata_pandas_wrappers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ def update(self, logical_name: str, record_id: str, entity_data: pd.Series) -> N
7575
:type record_id: str
7676
:param entity_data: Series whose index labels are field logical names. NaN values are ignored.
7777
:type entity_data: pandas.Series
78-
:return: None
79-
:rtype: None
8078
:raises TypeError: If ``entity_data`` is not a pandas Series.
8179
"""
8280
if not isinstance(entity_data, pd.Series):

0 commit comments

Comments
 (0)