From 28e7eceacd1ca5046631f261bb0562be10580d4b Mon Sep 17 00:00:00 2001
From: Mohammad Torkashvand <mohammad.torkashvand@geant.org>
Date: Thu, 3 Apr 2025 11:15:02 +0200
Subject: [PATCH] fix IASFlavor type hint everywhere

---
 gso/cli/imports.py                        | 2 +-
 test/fixtures/l3_core_service_fixtures.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gso/cli/imports.py b/gso/cli/imports.py
index cb0158842..6a82ddecc 100644
--- a/gso/cli/imports.py
+++ b/gso/cli/imports.py
@@ -318,7 +318,7 @@ class L3CoreServiceImportModel(BaseModel):
 class IASImportModel(L3CoreServiceImportModel):
     """Import IAS model."""
 
-    ias_flavor: IASFlavor | None = IASFlavor.IAS_PS_OPT_OUT
+    ias_flavor: IASFlavor = IASFlavor.IAS_PS_OPT_OUT
 
 
 class LanSwitchInterconnectRouterSideImportModel(BaseModel):
diff --git a/test/fixtures/l3_core_service_fixtures.py b/test/fixtures/l3_core_service_fixtures.py
index f41248bfa..04e9c175f 100644
--- a/test/fixtures/l3_core_service_fixtures.py
+++ b/test/fixtures/l3_core_service_fixtures.py
@@ -222,7 +222,7 @@ def ias_subscription_factory(faker, partner_factory, access_port_factory, save_l
         ap_list: list[AccessPort] | None = None,
         start_date="2023-05-24T00:00:00+00:00",
         status: SubscriptionLifecycle | None = None,
-        ias_flavor: str | None = IASFlavor.IAS_PS_OPT_OUT,
+        ias_flavor: IASFlavor | None = IASFlavor.IAS_PS_OPT_OUT,
         *,
         is_imported: bool | None = False,
     ) -> SubscriptionModel:
-- 
GitLab