Remove returntype

This commit is contained in:
Matthias
2022-02-20 16:34:35 +01:00
parent a24586cd41
commit fddacfedaa
3 changed files with 4 additions and 4 deletions

View File

@@ -209,9 +209,6 @@ def check_migrate(engine, decl_base, previous_tables) -> None:
f"backup: {table_back_name}, {order_table_bak_name}")
migrate_trades_and_orders_table(
decl_base, inspector, engine, table_back_name, cols, order_table_bak_name, cols_orders)
# Reread columns - the above recreated the table!
inspector = inspect(engine)
cols = inspector.get_columns('trades')
if 'orders' not in previous_tables and 'trades' in previous_tables:
logger.info('Moving open orders to Orders table.')

View File

@@ -160,7 +160,7 @@ class Order(_DECL_BASE):
return (f'Order(id={self.id}, order_id={self.order_id}, trade_id={self.ft_trade_id}, '
f'side={self.side}, order_type={self.order_type}, status={self.status})')
def update_from_ccxt_object(self, order) -> 'Order':
def update_from_ccxt_object(self, order):
"""
Update Order from ccxt response
Only updates if fields are available from ccxt -