Skip to content

Commit

Permalink
🐛 types are case insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Wytamma authored Dec 13, 2024
1 parent 41e423a commit 530115a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/snk_cli/options/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ def create_option_from_annotation(
if config_default is None or default != config_default:
updated = True
annotation_type = annotation_values.get(f"{annotation_key}:type", None)
if annotation_type is not None:
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 = types.get(
Expand Down

0 comments on commit 530115a

Please sign in to comment.