Skip to content

Commit

Permalink
use lower case for default
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma authored Dec 13, 2024
1 parent b9ee3ee commit 1c564f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snk_cli/options/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def create_option_from_annotation(
if annotation_type is not None:
annotation_type = annotation_type.lower()
assert annotation_type in types, f"Type '{annotation_type}' not supported."
annotation_type = annotation_type or get_default_type(default)
annotation_type = (annotation_type or get_default_type(default)).lower()
annotation_type = types.get(
annotation_type, List[str] if "list" in annotation_type else str
)
Expand Down

0 comments on commit 1c564f5

Please sign in to comment.