From eaaf6e4cc1370819b2bc7c7f1617725d503c4a7c Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 9 Jun 2023 15:09:49 -0400 Subject: [PATCH] kraken: fix `trades2pps()` type sig --- piker/brokers/kraken/broker.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/piker/brokers/kraken/broker.py b/piker/brokers/kraken/broker.py index 8025f0d2..8fa321b0 100644 --- a/piker/brokers/kraken/broker.py +++ b/piker/brokers/kraken/broker.py @@ -372,10 +372,7 @@ def trades2pps( write_storage: bool = True, -) -> tuple[ - list[BrokerdPosition], - list[Transaction], -]: +) -> list[BrokerdPosition]: if new_trans: updated = table.update_from_trans( new_trans, @@ -644,7 +641,7 @@ async def trades_dialogue( # stage a first reqid of `0` reqids2txids[0] = last_trade_dict['ordertxid'] - ppmsgs = trades2pps( + ppmsgs: list[BrokerdPosition] = trades2pps( table, acctid, )