Add nonlocal annots to satisfy ruff

master
Tyler Goodlet 2023-05-28 12:41:14 -04:00
parent 4f67ac0337
commit d6331ce9e1
1 changed files with 6 additions and 0 deletions

View File

@ -408,6 +408,8 @@ class Router(Struct):
return
def mk_paper_ep():
nonlocal brokermod, exec_mode
# for logging purposes
brokermod = paper
@ -1397,6 +1399,10 @@ async def maybe_open_trade_relays(
cache_hit,
(relay, feed, client_ready)
):
if cache_hit:
log.info(f'Reusing existing trades relay for {fqme}:\n'
f'{relay}\n')
yield relay, feed, client_ready