Skip to content

Commit

Permalink
Revert "Bump Black to latest version (#712)"
Browse files Browse the repository at this point in the history
This reverts commit 418b67b.
  • Loading branch information
richardm-stripe committed Feb 20, 2021
1 parent 56887c3 commit b32a0ae
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
3 changes: 2 additions & 1 deletion stripe/api_resources/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ def detach(self, idempotency_key=None, **params):
)

def source_transactions(self, **params):
"""source_transactions is deprecated, use Source.list_source_transactions instead."""
"""source_transactions is deprecated, use Source.list_source_transactions instead.
"""
return self.request(
"get", self.instance_url() + "/source_transactions", params
)
3 changes: 2 additions & 1 deletion stripe/api_resources/subscription_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ class SubscriptionItem(
OBJECT_NAME = "subscription_item"

def usage_record_summaries(self, **params):
"""usage_record_summaries is deprecated, use SubscriptionItem.list_usage_record_summaries instead."""
"""usage_record_summaries is deprecated, use SubscriptionItem.list_usage_record_summaries instead.
"""
return self.request(
"get", self.instance_url() + "/usage_record_summaries", params
)
6 changes: 2 additions & 4 deletions stripe/oauth_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ def construct_error_object(self):
if self.json_body is None:
return None

return (
stripe.api_resources.error_object.OAuthErrorObject.construct_from(
self.json_body, stripe.api_key
)
return stripe.api_resources.error_object.OAuthErrorObject.construct_from(
self.json_body, stripe.api_key
)


Expand Down
6 changes: 2 additions & 4 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,8 @@ def do_GET(self):

self.setup_mock_server(MockServerRequestHandler)

stripe.default_http_client = (
stripe.http_client.new_default_http_client(
proxy="http://localhost:%s" % self.mock_server_port
)
stripe.default_http_client = stripe.http_client.new_default_http_client(
proxy="http://localhost:%s" % self.mock_server_port
)
stripe.Balance.retrieve()
assert MockServerRequestHandler.num_requests == 1
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ passenv = LDFLAGS CFLAGS
[testenv:fmt]
description = run code formatting using black
basepython = python3.9
deps = black==20.8b1
deps = black==19.3b0
commands = black . {posargs}
skip_install = true

Expand Down

0 comments on commit b32a0ae

Please sign in to comment.