From 5e8944ac32d343032a44e9b3d914bbe354900a4b Mon Sep 17 00:00:00 2001
From: Neda Moeini <neda.moeini@geant.org>
Date: Fri, 8 Nov 2024 11:01:14 +0100
Subject: [PATCH] Fix type annotation in L2Circuit creation WF

---
 gso/workflows/l2_circuit/create_layer_2_circuit.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gso/workflows/l2_circuit/create_layer_2_circuit.py b/gso/workflows/l2_circuit/create_layer_2_circuit.py
index a3199bc1..723c5c37 100644
--- a/gso/workflows/l2_circuit/create_layer_2_circuit.py
+++ b/gso/workflows/l2_circuit/create_layer_2_circuit.py
@@ -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)
 
-- 
GitLab