Skip to content

Commit a834b7e

Browse files
committed
fix lint
1 parent 866a6a9 commit a834b7e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

ttcli/option.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -995,14 +995,14 @@ async def chain(
995995
subchain.strikes.sort(key=lambda s: s.strike_price)
996996
mid_index = 0
997997
if strikes < len(subchain.strikes):
998-
while subchain.strikes[mid_index].strike_price < trade.price:
998+
while subchain.strikes[mid_index].strike_price < trade.price: # type: ignore
999999
mid_index += 1
10001000
half = strikes // 2
10011001
all_strikes = subchain.strikes[mid_index - half : mid_index + half]
10021002
else:
10031003
all_strikes = subchain.strikes
10041004
mid_index = 0
1005-
while all_strikes[mid_index].strike_price < trade.price:
1005+
while all_strikes[mid_index].strike_price < trade.price: # type: ignore
10061006
mid_index += 1
10071007

10081008
dxfeeds = [s.call_streamer_symbol for s in all_strikes] + [
@@ -1012,7 +1012,7 @@ async def chain(
10121012
# take into account the symbol we subscribed to
10131013
streamer_symbol = symbol if symbol[0] != "/" else future.streamer_symbol # type: ignore
10141014
trade_dict: dict[str, Trade | None] = {}
1015-
trade_dict[streamer_symbol] = trade
1015+
trade_dict[streamer_symbol] = trade # type: ignore
10161016

10171017
greeks_task = asyncio.create_task(listen_events(dxfeeds, Greeks, streamer))
10181018
quote_task = asyncio.create_task(listen_events(dxfeeds, Quote, streamer))

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)