From 04fea69a2899446d71678625a5d056a708958e53 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 30 Sep 2019 17:26:03 +0000 Subject: [PATCH 1/2] Bump mypy from 0.720 to 0.730 Bumps [mypy](https://github.com/python/mypy) from 0.720 to 0.730. - [Release notes](https://github.com/python/mypy/releases) - [Commits](https://github.com/python/mypy/compare/v0.720...v0.730) Signed-off-by: dependabot-preview[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 8fd73df0c..2c1ae906d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -7,7 +7,7 @@ coveralls==1.8.2 flake8==3.7.8 flake8-type-annotations==0.1.0 flake8-tidy-imports==2.0.0 -mypy==0.720 +mypy==0.730 pytest==5.2.0 pytest-asyncio==0.10.0 pytest-cov==2.7.1 From dc47a391da82277bd80016e91ae78db8468a2305 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 30 Sep 2019 19:32:13 +0200 Subject: [PATCH 2/2] 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()