Skip to content

Commit 1d3b8b6

Browse files
committed
🐛 Fix yet another circular import
Signed-off-by: ff137 <[email protected]>
1 parent 5214ae6 commit 1d3b8b6

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

acapy_agent/indy/credx/issuer.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import asyncio
44
import logging
5-
from typing import Optional, Sequence, Tuple
5+
from typing import TYPE_CHECKING, Optional, Sequence, Tuple
66

77
from aries_askar import AskarError
88
from indy_credx import (
@@ -18,7 +18,6 @@
1818
Schema,
1919
)
2020

21-
from ...askar.profile import AskarProfile
2221
from ...utils.general import strip_did_prefix
2322
from ..issuer import (
2423
DEFAULT_CRED_DEF_TAG,
@@ -28,6 +27,10 @@
2827
IndyIssuerRevocationRegistryFullError,
2928
)
3029

30+
if TYPE_CHECKING:
31+
from ...askar.profile import AskarProfile
32+
33+
3134
LOGGER = logging.getLogger(__name__)
3235

3336
CATEGORY_CRED_DEF = "credential_def"

acapy_agent/indy/util.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@
77
from os.path import isdir, join
88
from pathlib import Path
99
from platform import system
10-
from typing import Optional
10+
from typing import TYPE_CHECKING, Optional
1111

12-
from ..core.profile import Profile
1312
from ..revocation.models.issuer_rev_reg_record import IssuerRevRegRecord
1413
from .issuer import IndyIssuerError
1514

15+
if TYPE_CHECKING:
16+
from ..core.profile import Profile
17+
1618
LOGGER = logging.getLogger(__name__)
1719

1820
REVOCATION_REGISTRY_CREATION_TIMEOUT = float(

0 commit comments

Comments
 (0)