Skip to content

Commit

Permalink
Upgrade black dependency (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe authored Nov 15, 2023
1 parent 07476e1 commit d039456
Show file tree
Hide file tree
Showing 80 changed files with 14 additions and 90 deletions.
5 changes: 1 addition & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ pytest-cov >= 2.8.1, < 2.11.0
pytest-mock >= 2.0.0
pytest-xdist >= 1.31.0
pytest >= 6.0.0
# black==23.11.0 supports py311/py312 targets,
# but it's keen to reformat way too many files
black==21.12b0
click==8.0.4 # Version 8.1 breaks black
black == 22.8.0
flake8
coverage >= 4.5.3, < 5
coveralls
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -3600,7 +3600,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/apple_pay_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/application_fee.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/apps/secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/balance_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/billing_portal/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/charge.py
Original file line number Diff line number Diff line change
Expand Up @@ -2324,7 +2324,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/checkout/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -3713,7 +3713,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/country_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/coupon.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/credit_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/credit_note_line_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/customer_cash_balance_transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/dispute.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/exchange_rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/file_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/financial_connections/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/identity/verification_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/identity/verification_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -3761,7 +3761,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/invoice_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/issuing/authorization.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/issuing/card.py
Original file line number Diff line number Diff line change
Expand Up @@ -1572,7 +1572,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/issuing/cardholder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/issuing/dispute.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/issuing/token.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/issuing/transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/payment_intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -8119,7 +8119,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/payment_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/payment_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/payment_method_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -2308,7 +2308,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/payment_method_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/payout.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/plan.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/price.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/promotion_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/quote.py
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/radar/early_fraud_warning.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/radar/value_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/radar/value_list_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/refund.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/reporting/report_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/reporting/report_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
1 change: 0 additions & 1 deletion stripe/api_resources/review.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ def list(
params=params,
)
if not isinstance(result, ListObject):

raise TypeError(
"Expected list object from API, got %s"
% (type(result).__name__)
Expand Down
Loading

0 comments on commit d039456

Please sign in to comment.