Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Allow passing multiple name for registering a value in RegistryMixin #385

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

dbogunowicz
Copy link
Contributor

Feature Description

Allows passing a List[str] to the name argument:

# register with multiple aliases
@Dataset.register(name=["cifar-10-dataset", "cifar-100-dataset"])
class Cifar(Dataset):
    pass

@bfineran bfineran merged commit 1c6ee99 into main Nov 13, 2023
@bfineran bfineran deleted the feature/damian/add_aliases_registry branch November 13, 2023 15:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants