Skip to content

Commit

Permalink
Move ignore to corrct line for mypy 730
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Sep 30, 2019
1 parent 04fea69 commit dc47a39
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions freqtrade/optimize/backtesting.py
Expand Up @@ -146,8 +146,8 @@ def _generate_text_table(self, data: Dict[str, Dict], results: DataFrame,
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:
"""
Expand Down Expand Up @@ -185,8 +185,8 @@ def _generate_text_table_strategy(self, all_results: dict) -> str:
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:
Expand Down
4 changes: 2 additions & 2 deletions freqtrade/optimize/edge_cli.py
Expand Up @@ -69,8 +69,8 @@ def _generate_edge_table(self, results: dict) -> str:
])

# 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()
Expand Down

0 comments on commit dc47a39

Please sign in to comment.