Skip to content

Commit 1e3820d

Browse files
Fix linting for upgrade to poetry black 23.7.0 (#486)
1 parent 15aa8bc commit 1e3820d

25 files changed

+3
-70
lines changed

examples/rest/crypto-exchanges.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515

1616
# loop over exchanges
1717
for exchange in exchanges:
18-
1918
# verify this is an exchange
2019
if isinstance(exchange, Exchange):
21-
2220
# print exchange info
2321
print(
2422
"{:<15}{} ({})".format(

examples/rest/crypto-market_holidays.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
# print date, name, and exchange
1717
for holiday in holidays:
18-
1918
# verify this is an exchange
2019
if isinstance(holiday, MarketHoliday):
21-
2220
print("{:<15}{:<15} ({})".format(holiday.date, holiday.name, holiday.exchange))

examples/rest/crypto-snapshots_all_tickers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,14 @@
1818

1919
# crunch some numbers
2020
for item in snapshot:
21-
2221
# verify this is an TickerSnapshot
2322
if isinstance(item, TickerSnapshot):
24-
2523
# verify this is an Agg
2624
if isinstance(item.prev_day, Agg):
27-
2825
# verify this is a float
2926
if isinstance(item.prev_day.open, float) and isinstance(
3027
item.prev_day.close, float
3128
):
32-
3329
percent_change = (
3430
(item.prev_day.close - item.prev_day.open)
3531
/ item.prev_day.open

examples/rest/crypto-snapshots_gainers_losers.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@
1616

1717
# print ticker with % change
1818
for gainer in gainers:
19-
2019
# verify this is a TickerSnapshot
2120
if isinstance(gainer, TickerSnapshot):
22-
2321
# verify this is a float
2422
if isinstance(gainer.todays_change_percent, float):
25-
2623
print("{:<15}{:.2f} %".format(gainer.ticker, gainer.todays_change_percent))
2724

2825
print()
@@ -33,11 +30,8 @@
3330

3431
# print ticker with % change
3532
for loser in losers:
36-
3733
# verify this is a TickerSnapshot
3834
if isinstance(loser, TickerSnapshot):
39-
4035
# verify this is a float
4136
if isinstance(loser.todays_change_percent, float):
42-
4337
print("{:<15}{:.2f} %".format(loser.ticker, loser.todays_change_percent))

examples/rest/financials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
financials = client.get_ticker_details("NFLX")
66
print(financials)
77

8-
for (i, n) in enumerate(client.list_ticker_news("INTC", limit=5)):
8+
for i, n in enumerate(client.list_ticker_news("INTC", limit=5)):
99
print(i, n)
1010
if i == 5:
1111
break

examples/rest/forex-exchanges.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515

1616
# loop over exchanges
1717
for exchange in exchanges:
18-
1918
# verify this is an exchange
2019
if isinstance(exchange, Exchange):
21-
2220
# print exchange info
2321
print(
2422
"{:<15}{} ({})".format(

examples/rest/forex-market_holidays.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
# print date, name, and exchange
1717
for holiday in holidays:
18-
1918
# verify this is an exchange
2019
if isinstance(holiday, MarketHoliday):
21-
2220
print("{:<15}{:<15} ({})".format(holiday.date, holiday.name, holiday.exchange))

examples/rest/forex-snapshots_all_tickers.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,14 @@
1818

1919
# crunch some numbers
2020
for item in snapshot:
21-
2221
# verify this is an TickerSnapshot
2322
if isinstance(item, TickerSnapshot):
24-
2523
# verify this is an Agg
2624
if isinstance(item.prev_day, Agg):
27-
2825
# verify this is a float
2926
if isinstance(item.prev_day.open, float) and isinstance(
3027
item.prev_day.close, float
3128
):
32-
3329
percent_change = (
3430
(item.prev_day.close - item.prev_day.open)
3531
/ item.prev_day.open

examples/rest/forex-snapshots_gainers_losers.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@
1616

1717
# print ticker with % change
1818
for gainer in gainers:
19-
2019
# verify this is a TickerSnapshot
2120
if isinstance(gainer, TickerSnapshot):
22-
2321
# verify this is a float
2422
if isinstance(gainer.todays_change_percent, float):
25-
2623
print("{:<15}{:.2f} %".format(gainer.ticker, gainer.todays_change_percent))
2724

2825
print()
@@ -33,11 +30,8 @@
3330

3431
# print ticker with % change
3532
for loser in losers:
36-
3733
# verify this is a TickerSnapshot
3834
if isinstance(loser, TickerSnapshot):
39-
4035
# verify this is a float
4136
if isinstance(loser.todays_change_percent, float):
42-
4337
print("{:<15}{:.2f} %".format(loser.ticker, loser.todays_change_percent))

examples/rest/indices-market_holidays.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515

1616
# print date, name, and exchange
1717
for holiday in holidays:
18-
1918
# verify this is an exchange
2019
if isinstance(holiday, MarketHoliday):
21-
2220
print("{:<15}{:<15} ({})".format(holiday.date, holiday.name, holiday.exchange))

0 commit comments

Comments
 (0)