Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemessick committed Jan 11, 2025
1 parent b939bb2 commit 7b959a9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 25 deletions.
11 changes: 5 additions & 6 deletions kaggle/api/kaggle_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,9 @@ def competitions_submissions_submit(self, blob_file_tokens, submission_descripti
:param str id: Competition name (required)
:return: Result
"""

print("competitions_submissions_submit() not implemented")
print("use kaggle_api_extended.KaggleApi.competition_submit() instead")
raise NotImplementedError()
print("competitions_submissions_submit() not implemented")
print("use kaggle_api_extended.KaggleApi.competition_submit() instead")
raise NotImplementedError()

def competitions_submissions_upload(self, file, guid, content_length, last_modified_date_utc): # noqa: E501
"""Upload competition submission file # noqa: E501
Expand All @@ -124,7 +123,7 @@ def competitions_submissions_upload(self, file, guid, content_length, last_modif
:return: Result
"""
print("competitions_submissions_upload() not implemented")
print("use kaggle_api_extended.KaggleApi.competition_submit() instead")
print("use kaggle_api_extended.KaggleApi.competitions_submissions_submit() instead")
raise NotImplementedError()

def competitions_submissions_url(self, id, content_length, last_modified_date_utc): # noqa: E501
Expand Down Expand Up @@ -183,7 +182,7 @@ def datasets_download(self, owner_slug, dataset_slug, dataset_version_number=Non
"""
dataset = f'{owner_slug}/{dataset_slug}'
if dataset_version_number is not None:
dataset += f'@{dataset_version_number}'
dataset += f'/{dataset_version_number}'
return self.api_client.dataset_download_files(dataset)

def datasets_download_file(self, owner_slug, dataset_slug, file_name, dataset_version_number=None): # noqa: E501
Expand Down
37 changes: 18 additions & 19 deletions src/kaggle/api/kaggle_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,9 @@ def competitions_submissions_submit(self, blob_file_tokens, submission_descripti
:param str id: Competition name (required)
:return: Result
"""

print("competitions_submissions_submit() not implemented")
print("use kaggle_api_extended.KaggleApi.competition_submit() instead")
raise NotImplementedError()
print("competitions_submissions_submit() not implemented")
print("use kaggle_api_extended.KaggleApi.competition_submit() instead")
raise NotImplementedError()

def competitions_submissions_upload(self, file, guid, content_length, last_modified_date_utc): # noqa: E501
"""Upload competition submission file # noqa: E501
Expand All @@ -124,7 +123,7 @@ def competitions_submissions_upload(self, file, guid, content_length, last_modif
:return: Result
"""
print("competitions_submissions_upload() not implemented")
print("use kaggle_api_extended.KaggleApi.competition_submit() instead")
print("use kaggle_api_extended.KaggleApi.competitions_submissions_submit() instead")
raise NotImplementedError()

def competitions_submissions_url(self, id, content_length, last_modified_date_utc): # noqa: E501
Expand Down Expand Up @@ -183,7 +182,7 @@ def datasets_download(self, owner_slug, dataset_slug, dataset_version_number=Non
"""
dataset = f'{owner_slug}/{dataset_slug}'
if dataset_version_number is not None:
dataset += f'@{dataset_version_number}'
dataset += f'/{dataset_version_number}'
return self.api_client.dataset_download_files(dataset)

def datasets_download_file(self, owner_slug, dataset_slug, file_name, dataset_version_number=None): # noqa: E501
Expand Down Expand Up @@ -491,19 +490,19 @@ def models_list(self,
owner=None,
page_size=20,
page_token=None): # noqa: E501
"""Lists models # noqa: E501
:param str search: Search terms
:param str sort_by: Sort the results
:param str owner: Display models by a specific user or organization
:param int page_size: Page size
:param str page_token: Page token for pagination
:return: Result
"""
return self.api_client.model_list(sort_by=sort_by,
search=search,
owner=owner,
page_size=page_size,
page_token=page_token)
"""Lists models # noqa: E501
:param str search: Search terms
:param str sort_by: Sort the results
:param str owner: Display models by a specific user or organization
:param int page_size: Page size
:param str page_token: Page token for pagination
:return: Result
"""
return self.api_client.model_list(sort_by=sort_by,
search=search,
owner=owner,
page_size=page_size,
page_token=page_token)

def update_model(self, owner_slug, model_slug, model_update_request,): # noqa: E501
"""Update a model # noqa: E501
Expand Down

0 comments on commit 7b959a9

Please sign in to comment.