Bump pre-commit mypy

This commit is contained in:
Matthias
2023-08-14 07:51:25 +02:00
parent 08bc615826
commit d53b6871ea
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ repos:
# stages: [push] # stages: [push]
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.3.0" rev: "v1.5.0"
hooks: hooks:
- id: mypy - id: mypy
exclude: build_helpers exclude: build_helpers
+1 -1
View File
@@ -1140,7 +1140,7 @@ class Backtesting:
# 5. Process exit orders. # 5. Process exit orders.
order = trade.select_order(trade.exit_side, is_open=True) order = trade.select_order(trade.exit_side, is_open=True)
if self._try_close_open_order(order, trade, current_time, row): if order and self._try_close_open_order(order, trade, current_time, row):
sub_trade = order.safe_amount_after_fee != trade.amount sub_trade = order.safe_amount_after_fee != trade.amount
if sub_trade: if sub_trade:
trade.recalc_trade_from_orders() trade.recalc_trade_from_orders()