Skip to content
Snippets Groups Projects
Commit 5e8944ac authored by Neda Moeini's avatar Neda Moeini
Browse files

Fix type annotation in L2Circuit creation WF

parent 273af69e
Branches
Tags
1 merge request!307Feature/l2circuits
......@@ -48,7 +48,7 @@ def initial_input_generator(product_name: str) -> FormGenerator:
)
vlan_id: VLAN_ID
def _vlan_range_field(*, is_tagged: bool) -> VLAN_ID:
def _vlan_range_field(*, is_tagged: bool) -> VLAN_ID | int:
"""Return the appropriate field type based on whether the circuit is tagged."""
return VLAN_ID if is_tagged else ReadOnlyField(None, default_type=int)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment