Skip to content

Commit a4a940a

Browse files
committed
🔧 refactor(contract.py): import API only if TYPE_CHECKING to avoid circular imports
🔧 refactor(contract.py): add future annotations import for better type hinting support
1 parent f6a9359 commit a4a940a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎convex_api/contract.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@
44
Convex Contract
55
66
"""
7+
from __future__ import annotations
8+
9+
from typing import TYPE_CHECKING
10+
11+
if TYPE_CHECKING:
12+
from convex_api.api import API
713

814
import re
15+
916
from convex_api.account import Account
10-
from convex_api.api import API
1117

1218

1319
class Contract:

0 commit comments

Comments
 (0)