Apply isort to all python files (bfxapi/**/*.py).

This commit is contained in:
Davide Casale
2024-02-26 19:36:10 +01:00
parent d3f402fbc7
commit 2b7dfc5b8a
29 changed files with 224 additions and 196 deletions

View File

@@ -1,6 +1,7 @@
from typing import Dict, Any
import json
import re
from typing import Any, Dict
import re, json
def _to_snake_case(string: str) -> str:
return re.sub(r"(?<!^)(?=[A-Z])", "_", string).lower()

View File

@@ -1,10 +1,6 @@
from typing import \
Union, List, Dict, \
Any
import json
from decimal import Decimal
from typing import Any, Dict, List, Union
_ExtJSON = Union[Dict[str, "_ExtJSON"], List["_ExtJSON"], \
bool, int, float, str, Decimal, None]

View File

@@ -1,12 +1,9 @@
from typing import \
TYPE_CHECKING, Literal, Optional
import sys
from copy import copy
#pylint: disable-next=wildcard-import,unused-wildcard-import
from logging import *
from copy import copy
import sys
from typing import TYPE_CHECKING, Literal, Optional
if TYPE_CHECKING:
_Level = Literal["NOTSET", "DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]