From 49517f9709c708c52ddd29af42c7627bf55e28af Mon Sep 17 00:00:00 2001 From: Davide Casale Date: Tue, 14 Feb 2023 17:03:16 +0100 Subject: [PATCH] Small fix in package import statements. --- bfxapi/rest/endpoints/rest_authenticated_endpoints.py | 2 +- bfxapi/rest/endpoints/rest_merchant_endpoints.py | 3 ++- bfxapi/rest/types.py | 2 +- bfxapi/utils/JSONEncoder.py | 2 -- bfxapi/websocket/client/bfx_websocket_inputs.py | 4 ++-- bfxapi/websocket/enums.py | 2 +- bfxapi/websocket/types.py | 8 ++++---- 7 files changed, 11 insertions(+), 12 deletions(-) diff --git a/bfxapi/rest/endpoints/rest_authenticated_endpoints.py b/bfxapi/rest/endpoints/rest_authenticated_endpoints.py index 947032b..7b4e11e 100644 --- a/bfxapi/rest/endpoints/rest_authenticated_endpoints.py +++ b/bfxapi/rest/endpoints/rest_authenticated_endpoints.py @@ -1,4 +1,4 @@ -from typing import List, Union, Literal, Optional +from typing import List, Tuple, Union, Literal, Optional from decimal import Decimal from datetime import datetime diff --git a/bfxapi/rest/endpoints/rest_merchant_endpoints.py b/bfxapi/rest/endpoints/rest_merchant_endpoints.py index 8290a2c..0c80110 100644 --- a/bfxapi/rest/endpoints/rest_merchant_endpoints.py +++ b/bfxapi/rest/endpoints/rest_merchant_endpoints.py @@ -1,4 +1,5 @@ -from typing import List, Union, Literal, Optional +from typing import TypedDict, List, Union, Literal, Optional + from decimal import Decimal from .. types import * diff --git a/bfxapi/rest/types.py b/bfxapi/rest/types.py index 12fdb29..e1c39af 100644 --- a/bfxapi/rest/types.py +++ b/bfxapi/rest/types.py @@ -1,4 +1,4 @@ -from typing import Type, Tuple, List, Dict, TypedDict, Union, Optional, Literal, Any +from typing import List, Dict, Optional, Literal, Any from dataclasses import dataclass diff --git a/bfxapi/utils/JSONEncoder.py b/bfxapi/utils/JSONEncoder.py index 5124376..edaba00 100644 --- a/bfxapi/utils/JSONEncoder.py +++ b/bfxapi/utils/JSONEncoder.py @@ -2,8 +2,6 @@ import json from decimal import Decimal from datetime import datetime -from types import SimpleNamespace - from typing import Type, List, Dict, Union, Any JSON = Union[Dict[str, "JSON"], List["JSON"], bool, int, float, str, Type[None]] diff --git a/bfxapi/websocket/client/bfx_websocket_inputs.py b/bfxapi/websocket/client/bfx_websocket_inputs.py index 48e3137..141f817 100644 --- a/bfxapi/websocket/client/bfx_websocket_inputs.py +++ b/bfxapi/websocket/client/bfx_websocket_inputs.py @@ -2,8 +2,8 @@ from decimal import Decimal from datetime import datetime from typing import Union, Optional, List, Tuple -from ..types import JSON -from ..enums import OrderType, FundingOfferType +from .. enums import OrderType, FundingOfferType +from ... utils.JSONEncoder import JSON class BfxWebsocketInputs(object): def __init__(self, __handle_websocket_input): diff --git a/bfxapi/websocket/enums.py b/bfxapi/websocket/enums.py index 8f06f62..b9530db 100644 --- a/bfxapi/websocket/enums.py +++ b/bfxapi/websocket/enums.py @@ -1,4 +1,4 @@ -from ..enums import * +from .. enums import * class Channels(str, Enum): TICKER = "ticker" diff --git a/bfxapi/websocket/types.py b/bfxapi/websocket/types.py index 0ffa870..063836a 100644 --- a/bfxapi/websocket/types.py +++ b/bfxapi/websocket/types.py @@ -1,10 +1,10 @@ -from typing import Type, Tuple, List, Dict, TypedDict, Union, Optional, Any +from typing import Optional from dataclasses import dataclass -from ..labeler import _Type -from ..notification import Notification -from ..utils.JSONEncoder import JSON +from .. labeler import _Type +from .. notification import Notification +from .. utils.JSONEncoder import JSON #region Type hinting for Websocket Public Channels