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

Fix type annotation in L2Circuit creation WF

parent 5ae14326
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ def initial_input_generator(product_name: str) -> FormGenerator: ...@@ -48,7 +48,7 @@ def initial_input_generator(product_name: str) -> FormGenerator:
) )
vlan_id: VLAN_ID 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 the appropriate field type based on whether the circuit is tagged."""
return VLAN_ID if is_tagged else ReadOnlyField(None, default_type=int) 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