From 53d0ce744af429be1de16ce6938c6c7b808d7222 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Mon, 2 Dec 2024 18:57:16 +0100 Subject: [PATCH] Ruff --- fin_depo/data.py | 2 +- test/test_kucoin_trading.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fin_depo/data.py b/fin_depo/data.py index 704ed55..61e4e07 100644 --- a/fin_depo/data.py +++ b/fin_depo/data.py @@ -1,13 +1,13 @@ """Datastructures for `fin-depo`.""" import abc -import dataclassabc import dataclasses import datetime from collections.abc import Iterable, Mapping from decimal import Decimal from typing import TypeVar +import dataclassabc import enforce_typing from fin_defs import Asset, AssetAmount diff --git a/test/test_kucoin_trading.py b/test/test_kucoin_trading.py index f5268b1..b547f10 100644 --- a/test/test_kucoin_trading.py +++ b/test/test_kucoin_trading.py @@ -31,7 +31,9 @@ def test_place_market_order_requires_allow_trades(): ) with pytest.raises(PermissionError) as m: - fetcher.place_market_order(fin_defs.AssetAmount(fin_defs.MPC, Decimal(1)), fin_defs.USDT) + fetcher.place_market_order( + fin_defs.AssetAmount(fin_defs.MPC, Decimal(1)), fin_defs.USDT + ) assert 'KucoinDepoFetcher.allow_trades is not enabled: Cannot make trades' in str(m)