Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion polaris/hub/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def upload_dataset(
# Check if a dataset license was specified prior to upload
if not dataset.license:
raise InvalidDatasetError(
f"\nPlease specify a supported license for this dataset prior to uploading to the Polaris Hub.\nOnly some Creative Commons licenses are supported - {get_args(SupportedLicenseType)}. For more information, see https://creativecommons.org/share-your-work/cclicenses/"
f"\nPlease specify a supported license for this dataset prior to uploading to the Polaris Hub.\nOnly some licenses are supported - {get_args(SupportedLicenseType)}."
)

# Normalize timeout
Expand Down
2 changes: 1 addition & 1 deletion polaris/utils/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"""

SupportedLicenseType: TypeAlias = Literal[
"CC-BY-4.0", "CC-BY-SA-4.0", "CC-BY-NC-4.0", "CC-BY-NC-SA-4.0", "CC0-1.0"
"CC-BY-4.0", "CC-BY-SA-4.0", "CC-BY-NC-4.0", "CC-BY-NC-SA-4.0", "CC0-1.0", "MIT"
]
"""
Supported license types for dataset uploads to Polaris Hub
Expand Down