mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2026-02-07 06:44:25 +01:00
Apply black to all python files (bfxapi/**/*.py).
This commit is contained in:
@@ -6,8 +6,10 @@ from typing import Any, Dict
|
||||
def _to_snake_case(string: str) -> str:
|
||||
return re.sub(r"(?<!^)(?=[A-Z])", "_", string).lower()
|
||||
|
||||
|
||||
def _object_hook(data: Dict[str, Any]) -> Any:
|
||||
return { _to_snake_case(key): value for key, value in data.items() }
|
||||
return {_to_snake_case(key): value for key, value in data.items()}
|
||||
|
||||
|
||||
class JSONDecoder(json.JSONDecoder):
|
||||
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
||||
|
||||
Reference in New Issue
Block a user