From dc47a391da82277bd80016e91ae78db8468a2305 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 30 Sep 2019 19:32:13 +0200 Subject: [PATCH] Move ignore to corrct line for mypy 730 --- freqtrade/optimize/backtesting.py | 8 ++++---- freqtrade/optimize/edge_cli.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/freqtrade/optimize/backtesting.py b/freqtrade/optimize/backtesting.py index 6074b281b..89aff86f6 100644 --- a/freqtrade/optimize/backtesting.py +++ b/freqtrade/optimize/backtesting.py @@ -146,8 +146,8 @@ class Backtesting: len(results[results.profit_abs < 0]) ]) # Ignore type as floatfmt does allow tuples but mypy does not know that - return tabulate(tabular_data, headers=headers, # type: ignore - floatfmt=floatfmt, tablefmt="pipe") + return tabulate(tabular_data, headers=headers, + floatfmt=floatfmt, tablefmt="pipe") # type: ignore def _generate_text_table_sell_reason(self, data: Dict[str, Dict], results: DataFrame) -> str: """ @@ -185,8 +185,8 @@ class Backtesting: len(results[results.profit_abs < 0]) ]) # Ignore type as floatfmt does allow tuples but mypy does not know that - return tabulate(tabular_data, headers=headers, # type: ignore - floatfmt=floatfmt, tablefmt="pipe") + return tabulate(tabular_data, headers=headers, + floatfmt=floatfmt, tablefmt="pipe") # type: ignore def _store_backtest_result(self, recordfilename: Path, results: DataFrame, strategyname: Optional[str] = None) -> None: diff --git a/freqtrade/optimize/edge_cli.py b/freqtrade/optimize/edge_cli.py index 0cf5a009b..1ba6bcc65 100644 --- a/freqtrade/optimize/edge_cli.py +++ b/freqtrade/optimize/edge_cli.py @@ -69,8 +69,8 @@ class EdgeCli: ]) # Ignore type as floatfmt does allow tuples but mypy does not know that - return tabulate(tabular_data, headers=headers, # type: ignore - floatfmt=floatfmt, tablefmt="pipe") + return tabulate(tabular_data, headers=headers, + floatfmt=floatfmt, tablefmt="pipe") # type: ignore def start(self) -> None: result = self.edge.calculate()