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)