Skip to content

Commit

Permalink
Fix docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
lcard committed Oct 11, 2023
1 parent c55a654 commit f1ff07c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion sdk/rapid/patterns/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def upload_and_create_dataset(
Raises:
rapid.exceptions.DataFrameUploadValidationException: If the DataFrame's schema is incorrect and upgrade_schema_on_fail is False.
Exception: If an error occurs while generating the schema, creating the schema, or uploading the DataFrame.
"""
try:
rapid.upload_dataframe(
Expand Down
6 changes: 4 additions & 2 deletions sdk/rapid/rapid.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ def upload_dataframe(
wait_to_complete (bool, optional): Whether to wait for the upload job to complete before returning. Defaults to True.
Raises:
rapid.exceptions.DataFrameUploadValidationException: If the DataFrame's schema is incorrect.
rapid.exceptions.DataFrameUploadFailedException: If an unexpected error occurs while uploading the DataFrame.
rapid.exceptions.DataFrameUploadValidationException: If the DataFrame's schema is incorrect.
rapid.exceptions.DataFrameUploadFailedException: If an unexpected error occurs while uploading the DataFrame.
rapid.exceptions.DatasetNotFoundException: If the specified dataset does not exist.
Returns:
If wait_to_complete is True, returns "Success" if the upload is successful.
Expand Down Expand Up @@ -205,6 +206,7 @@ def fetch_dataset_info(self, layer: str, domain: str, dataset: str):
Raises:
rapid.exceptions.DatasetInfoFailedException: If an error occurs while fetching the dataset information.
rapid.exceptions.DatasetNotFoundException: If the specified dataset does not exist.
Returns:
A dictionary containing the metadata information for the dataset.
Expand Down

0 comments on commit f1ff07c

Please sign in to comment.