From 8d7e879751e07b3e6592b8d1e0eb0f1153d5287b Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Thu, 28 Nov 2024 21:37:57 +0100 Subject: [PATCH] Fix for new ruff check --- fin_defs/__init__.py | 8 +++++++- test/test_ids.py | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fin_defs/__init__.py b/fin_defs/__init__.py index befe4f3..b6f9e42 100644 --- a/fin_defs/__init__.py +++ b/fin_defs/__init__.py @@ -27,7 +27,13 @@ import enforce_typing from ._version import __version__ -__all__ = ['__version__', 'StockExchange', 'AssetAmount', 'Asset', 'ExchangeRateSample'] +__all__ = [ + 'Asset', + 'AssetAmount', + 'ExchangeRateSample', + 'StockExchange', + '__version__', +] def parse_id_attr_key_value_pair(attr_datum: str) -> tuple[str, str | int] | None: diff --git a/test/test_ids.py b/test/test_ids.py index df20ab2..d1e5e50 100644 --- a/test/test_ids.py +++ b/test/test_ids.py @@ -17,7 +17,7 @@ VALID_IDS = [ 'crypto:LOLCOIN', 'commodity:ALUMINUM', 'unknown:XXX', - 'crypto: ', # CCXT actually found one with only whitespace. Why? + 'crypto: ', # CCXT actually found one with only whitespace. Why? ]