Skip to content

Commit

Permalink
fix cyclic import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtana committed Mar 17, 2024
1 parent f1ffa63 commit 97cadc8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pyglinet/glinet_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 97cadc8

Please sign in to comment.