Skip to content

Commit f6a9359

Browse files
committed
πŸ”§ refactor(registry.py): reorder imports for better code organization
πŸ”§ refactor(registry.py): remove string annotation from 'API' in __init__ method for better type hinting πŸ”§ refactor(registry.py): add __future__ import annotations for forward references support
1 parent ea3da6c commit f6a9359

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

β€Žconvex_api/registry.pyβ€Ž

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
ConvexRegistry
44
55
"""
6-
import logging
6+
from __future__ import annotations
7+
78
from typing import (
89
TYPE_CHECKING,
910
cast
1011
)
1112

12-
from convex_api.account import Account
13-
1413
if TYPE_CHECKING:
1514
from convex_api.api import API
1615

16+
import logging
17+
18+
from convex_api.account import Account
1719
from convex_api.exceptions import ConvexAPIError
1820

1921
logger = logging.getLogger(__name__)
@@ -23,7 +25,7 @@
2325

2426
class Registry:
2527

26-
def __init__(self, convex: 'API'):
28+
def __init__(self, convex: API):
2729
self._convex = convex
2830
self._address = None
2931
self._items: dict[str, tuple[int, int] | None] = {}

0 commit comments

Comments
Β (0)