Skip to content

Commit 6b3703a

Browse files
Peter Doggartpeter-doggart
Peter Doggart
authored andcommitted
Apply black 2023 format changes.
1 parent 10cc5ce commit 6b3703a

File tree

5 files changed

+16
-6
lines changed

5 files changed

+16
-6
lines changed

CHANGELOG.rst

+15-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,23 @@ Releases prior to 0.3.0 were “best effort” filled out, but are missing
2525
some info. If you see your contribution missing info, please open a PR
2626
on the Changelog!
2727

28-
.. _section-1.0.4:
29-
1.0.4
28+
.. _section-1.0.7:
29+
1.0.7
3030
-----
3131

32-
.. _bug_fixes-1.0.4
32+
.. _bug_fixes-1.0.7
33+
Bug Fixes
34+
~~~~~~~~~
35+
36+
::
37+
38+
* Update Black to 2023 version [peter_doggart]
39+
40+
.. _section-1.0.5:
41+
1.0.5
42+
-----
43+
44+
.. _bug_fixes-1.0.5
3345
Bug Fixes
3446
~~~~~~~~~
3547

flask_restx/api.py

-1
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,6 @@ def handle_error(self, e):
688688
and current_app.config.get("PROPAGATE_EXCEPTIONS", False)
689689
and not isinstance(e, tuple(self._own_and_child_error_handlers.keys()))
690690
):
691-
692691
exc_type, exc_value, tb = sys.exc_info()
693692
if exc_value is e:
694693
raise

tests/test_errors.py

-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ def handle_custom_exception(error):
164164
def test_blunder_in_errorhandler_is_not_suppressed_in_logs(
165165
self, app, client, caplog
166166
):
167-
168167
api = restx.Api(app)
169168

170169
class CustomException(RuntimeError):

tests/test_payload.py

-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ def test_empty_payload(self, app, client):
368368
@api.route("/empty/")
369369
class Payload(restx.Resource):
370370
def post(self):
371-
372371
return {}
373372

374373
response = client.post(

tests/test_swagger.py

+1
Original file line numberDiff line numberDiff line change
@@ -2197,6 +2197,7 @@ def test_specs_no_duplicate_response_keys(self, api, client):
21972197
This tests that the swagger.json document will not be written with duplicate object keys
21982198
due to the coercion of dict keys to string. The last @api.response should win.
21992199
"""
2200+
22002201
# Note the use of a strings '404' and '200' in class decorators as opposed to ints in method decorators.
22012202
@api.response("404", "Not Found")
22022203
class BaseResource(restx.Resource):

0 commit comments

Comments
 (0)