From c37d83107a93ac46351e8e2addc691388806162d Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Mon, 8 Jul 2024 19:02:44 +0200 Subject: [PATCH] Ruff check --- fin_defs/__init__.py | 9 ++++----- fin_defs/_version.py | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/fin_defs/__init__.py b/fin_defs/__init__.py index 7bffdee..5438c41 100644 --- a/fin_defs/__init__.py +++ b/fin_defs/__init__.py @@ -100,11 +100,11 @@ class CryptoCurrency(Currency): coingecko_id: str | None def __post_init__(self): - '''TODO + """TODO if not re.match(RE_CRYPTO_TICKER_FORMAT, self.ccxt_symbol): msg = f'ccxt_symbol was not in correct format: {self.ccxt_symbol}' raise ValueError(msg) - ''' + """ def __str__(self): return self.ccxt_symbol @@ -224,7 +224,7 @@ WELL_KNOWN_SYMBOLS = ( 'CZK', ] } - | { 'XXBT': BTC } + | {'XXBT': BTC} | {str(k): k for k in COMMON_NAMES} | {'SPX500': SPX, 'SP500': SPX, 'Nasdaq 100': NDX} ) @@ -288,8 +288,7 @@ EXCHANGES = [ StockExchange(name='Australian Securities Exchange', mic='XASX'), StockExchange(name='Johannesburg Stock Exchange', mic='XJSE'), StockExchange(name='Tehran Stock Exchange', mic='XTEH'), - StockExchange(name='Over The Counter (Unlisted)', mic='OTC'), # TODO: Unofficial - + StockExchange(name='Over The Counter (Unlisted)', mic='OTC'), # TODO: Unofficial StockExchange(name='NYSE Arca', mic='ARCX'), StockExchange(name='BATS Global Markets', mic='BATS'), StockExchange(name='NYSE American', mic='XASE'), diff --git a/fin_defs/_version.py b/fin_defs/_version.py index d1a2f77..dccb61c 100644 --- a/fin_defs/_version.py +++ b/fin_defs/_version.py @@ -1 +1 @@ -__version__ = '0.1.21' \ No newline at end of file +__version__ = '0.1.21'