From 530115a5e78b4b156c2763514fa3788c22050c3e Mon Sep 17 00:00:00 2001 From: Wytamma Wirth <wytamma.wirth@me.com> Date: Fri, 13 Dec 2024 14:44:50 +1100 Subject: [PATCH] :bug: types are case insensitive --- src/snk_cli/options/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/snk_cli/options/utils.py b/src/snk_cli/options/utils.py index fd11a47..74b3846 100644 --- a/src/snk_cli/options/utils.py +++ b/src/snk_cli/options/utils.py @@ -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(