From 97cadc85f387f5801d271a57426d92ec80e60a1a Mon Sep 17 00:00:00 2001 From: tomtana Date: Sun, 17 Mar 2024 20:30:23 +0100 Subject: [PATCH] fix cyclic import issue --- pyglinet/glinet_api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyglinet/glinet_api.py b/pyglinet/glinet_api.py index 7b6ae1d..53bf324 100644 --- a/pyglinet/glinet_api.py +++ b/pyglinet/glinet_api.py @@ -6,13 +6,12 @@ from tabulate import tabulate import pyglinet.exceptions as exceptions -from pyglinet import GlInet log = logging.getLogger(__name__) class GlInetApiCall: - def __init__(self, data: dict, session: GlInet): + def __init__(self, data: dict, session): self._session = session for name, value in data.items(): setattr(self, name, self._wrap(value)) @@ -86,7 +85,7 @@ def __str__(self): class GlInetApi: - def __init__(self, data: dict[str, Any], session: GlInet): + def __init__(self, data: dict[str, Any], session): self._session = session if isinstance(data, dict) and data.get("case_groups_data", None): for name, value in data.get("case_groups_data").items():