Skip to content

Commit 4eb69e5

Browse files
Copilotyarikoptic
andcommitted
Use tuple comprehension for DataladMode choices
- Change from list to tuple comprehension to avoid creating new list on each import - More efficient and follows best practices Co-authored-by: yarikoptic <39889+yarikoptic@users.noreply.github.com>
1 parent 0658ea8 commit 4eb69e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dandi/cli/cmd_upload.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
)
5151
@click.option(
5252
"--datalad",
53-
type=click.Choice([e.value for e in DataladMode]),
53+
type=click.Choice(tuple(e.value for e in DataladMode)),
5454
default="no",
5555
show_default=True,
5656
help=(

0 commit comments

Comments
 (0)