Skip to content

Commit 5726844

Browse files
author
Jeff Schroeder
committed
[examples} fix some flake8 boogs in dump.py
1 parent f91e133 commit 5726844

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

examples/dump.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from loguru import logger
1111

1212
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
13-
from pythclient.pythclient import PythClient, V2_PROGRAM_KEY, V2_FIRST_MAPPING_ACCOUNT_KEY
14-
from pythclient.ratelimit import RateLimit
15-
from pythclient.pythaccounts import PythPriceAccount
13+
from pythclient.pythclient import PythClient, V2_PROGRAM_KEY, V2_FIRST_MAPPING_ACCOUNT_KEY # noqa
14+
from pythclient.ratelimit import RateLimit # noqa
15+
from pythclient.pythaccounts import PythPriceAccount # noqa
1616

1717
logger.enable("pythclient")
1818

@@ -32,7 +32,10 @@ def set_to_exit(sig: Any, frame: Any):
3232
async def main():
3333
global to_exit
3434
use_program = len(sys.argv) >= 2 and sys.argv[1] == "program"
35-
async with PythClient(first_mapping_account_key=V2_FIRST_MAPPING_ACCOUNT_KEY, program_key=V2_PROGRAM_KEY if use_program else None) as c:
35+
async with PythClient(
36+
first_mapping_account_key=V2_FIRST_MAPPING_ACCOUNT_KEY,
37+
program_key=V2_PROGRAM_KEY if use_program else None,
38+
) as c:
3639
await c.refresh_all_prices()
3740
products = await c.get_products()
3841
all_prices: List[PythPriceAccount] = []
@@ -82,8 +85,6 @@ async def main():
8285
pr.aggregate_price_confidence_interval,
8386
)
8487
break
85-
else:
86-
print("WTF!: ", price)
8788

8889
print("Unsubscribing...")
8990
if use_program:

0 commit comments

Comments
 (0)