Small fix in package import statements.

This commit is contained in:
Davide Casale
2023-02-14 17:03:16 +01:00
parent 17c9502733
commit 49517f9709
7 changed files with 11 additions and 12 deletions

View File

@@ -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

View File

@@ -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 *

View File

@@ -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

View File

@@ -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]]

View File

@@ -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):

View File

@@ -1,4 +1,4 @@
from ..enums import *
from .. enums import *
class Channels(str, Enum):
TICKER = "ticker"

View File

@@ -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