From 375949e41a6fe60dd5e1ae279d58cd142a54b042 Mon Sep 17 00:00:00 2001 From: Arunavo Ray Date: Thu, 23 Sep 2021 11:54:05 +0530 Subject: [PATCH] Suppress incompatible type "Optional[float]"; expected "float" as the check exists. --- freqtrade/leverage/liquidation_price.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/freqtrade/leverage/liquidation_price.py b/freqtrade/leverage/liquidation_price.py index 2d75ebd6d..e322ddb34 100644 --- a/freqtrade/leverage/liquidation_price.py +++ b/freqtrade/leverage/liquidation_price.py @@ -36,9 +36,10 @@ def liquidation_price( f"maintenance_amt, position, entry_price, mm_rate " f"is required by liquidation_price when exchange is {exchange_name.lower()}") - return binance(open_rate, is_short, leverage, trading_mode, collateral, wallet_balance, - mm_ex_1, upnl_ex_1, maintenance_amt, - position, entry_price, mm_rate) + # Suppress incompatible type "Optional[float]"; expected "float" as the check exists above. + return binance(open_rate, is_short, leverage, trading_mode, collateral, # type: ignore + wallet_balance, mm_ex_1, upnl_ex_1, maintenance_amt, # type: ignore + position, entry_price, mm_rate) # type: ignore elif exchange_name.lower() == "kraken": return kraken(open_rate, is_short, leverage, trading_mode, collateral) elif exchange_name.lower() == "ftx":