mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-18 22:34:21 +01:00
Remove circular import from file bfx_websocket_client.py.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
from typing import \
|
from typing import \
|
||||||
TYPE_CHECKING, TypedDict, List, Literal, Optional
|
TYPE_CHECKING, List, Literal, Optional
|
||||||
|
|
||||||
from bfxapi._utils.logging import ColorLogger
|
from bfxapi._utils.logging import ColorLogger
|
||||||
|
|
||||||
@@ -10,8 +10,8 @@ from bfxapi.websocket import BfxWebSocketClient
|
|||||||
from bfxapi.urls import REST_HOST, WSS_HOST
|
from bfxapi.urls import REST_HOST, WSS_HOST
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
_Credentials = TypedDict("_Credentials", \
|
from bfxapi.websocket._client.bfx_websocket_client import \
|
||||||
{ "api_key": str, "api_secret": str, "filters": Optional[List[str]] })
|
_Credentials
|
||||||
|
|
||||||
class Client:
|
class Client:
|
||||||
def __init__(
|
def __init__(
|
||||||
|
|||||||
@@ -31,15 +31,16 @@ from bfxapi.websocket.exceptions import \
|
|||||||
OutdatedClientVersion, \
|
OutdatedClientVersion, \
|
||||||
ZeroConnectionsError
|
ZeroConnectionsError
|
||||||
|
|
||||||
from .bfx_websocket_bucket import BfxWebSocketBucket
|
from bfxapi.websocket._client.bfx_websocket_bucket import BfxWebSocketBucket
|
||||||
|
|
||||||
from .bfx_websocket_inputs import BfxWebSocketInputs
|
from bfxapi.websocket._client.bfx_websocket_inputs import BfxWebSocketInputs
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from bfxapi.client import _Credentials
|
|
||||||
|
|
||||||
from asyncio import Task
|
from asyncio import Task
|
||||||
|
|
||||||
|
_Credentials = TypedDict("_Credentials", \
|
||||||
|
{ "api_key": str, "api_secret": str, "filters": Optional[List[str]] })
|
||||||
|
|
||||||
_Reconnection = TypedDict("_Reconnection",
|
_Reconnection = TypedDict("_Reconnection",
|
||||||
{ "attempts": int, "reason": str, "timestamp": datetime })
|
{ "attempts": int, "reason": str, "timestamp": datetime })
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user