diff --git a/gso/workflows/iptrunk/create_iptrunk.py b/gso/workflows/iptrunk/create_iptrunk.py index f8494378e84777ed072e2cb5c2eef39736e3f464..cb9f832310370699c89bc2f5ad0a1a4899e6033f 100644 --- a/gso/workflows/iptrunk/create_iptrunk.py +++ b/gso/workflows/iptrunk/create_iptrunk.py @@ -87,7 +87,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator: # Get version choices from config iptrunk_versions = list(load_gso_service_config().IP_TRUNK.version.keys()) - iptrunk_version_choices = Choice("Select version", [(v, v) for v in iptrunk_versions]) + iptrunk_version_choices = Choice("Select version", [(v, v) for v in iptrunk_versions]) # type: ignore[arg-type] class CreateIptrunkForm(FormPage): model_config = ConfigDict(title=product_name) @@ -99,7 +99,7 @@ def initial_input_form_generator(product_name: str) -> FormGenerator: iptrunk_speed: PhysicalPortCapacity iptrunk_number_of_members: int iptrunk_description_suffix: str | None = None - iptrunk_config_version: iptrunk_version_choices + iptrunk_config_version: iptrunk_version_choices # type: ignore[valid-type] initial_user_input = yield CreateIptrunkForm recommended_minimum_links = calculate_recommended_minimum_links( diff --git a/gso/workflows/iptrunk/modify_trunk_interface.py b/gso/workflows/iptrunk/modify_trunk_interface.py index 9438ed3c633e84a116ef3478bd60b9770117226a..391832078f8ffa8a83016b33748fb536d032128f 100644 --- a/gso/workflows/iptrunk/modify_trunk_interface.py +++ b/gso/workflows/iptrunk/modify_trunk_interface.py @@ -89,7 +89,7 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator: # Get version choices from config (single-select dropdown) iptrunk_versions = list(load_gso_service_config().IP_TRUNK.version.keys()) - iptrunk_version_choices = Choice("Select version", [(v, v) for v in iptrunk_versions]) + iptrunk_version_choices = Choice("Select version", [(v, v) for v in iptrunk_versions]) # type: ignore[arg-type] class ModifyIptrunkForm(FormPage): tt_number: TTNumber @@ -99,9 +99,8 @@ def initial_input_form_generator(subscription_id: UUIDstr) -> FormGenerator: ] | None ) = subscription.iptrunk.gs_id - iptrunk_description: str | None = subscription.iptrunk.iptrunk_description - iptrunk_config_version: iptrunk_version_choices = subscription.iptrunk.iptrunk_config_version + iptrunk_config_version: iptrunk_version_choices = subscription.iptrunk.iptrunk_config_version # type: ignore[valid-type] iptrunk_type: IptrunkType | str = subscription.iptrunk.iptrunk_type # FIXME: remove str workaround warning_label: Label = ( "Changing the PhyPortCapacity will result in the deletion of all AE members. "