Skip to content

Commit 5d5456c

Browse files
author
Tomáš Trval
committed
modify: format black
1 parent 77ff259 commit 5d5456c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flask_restx/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
class FlaskCompatibilityWarning(DeprecationWarning):
2626
pass
2727

28+
2829
def merge(first, second):
2930
"""
3031
Recursively merges two dictionaries.
@@ -135,6 +136,7 @@ def import_check_view_func():
135136
actual method body remaining the same in each flask version.
136137
"""
137138
import importlib.metadata
139+
138140
flask_version = importlib.metadata.version("flask").split(".")
139141

140142
def local_endpoint_from_view_func(view_func: typing.Callable) -> str:
@@ -143,6 +145,7 @@ def local_endpoint_from_view_func(view_func: typing.Callable) -> str:
143145
"""
144146
assert view_func is not None, "expected view func if endpoint is not provided."
145147
return view_func.__name__
148+
146149
try:
147150
if flask_version[0] == "1":
148151
from flask.helpers import _endpoint_from_view_func
@@ -159,4 +162,3 @@ def local_endpoint_from_view_func(view_func: typing.Callable) -> str:
159162
if _endpoint_from_view_func is None:
160163
_endpoint_from_view_func = local_endpoint_from_view_func
161164
return _endpoint_from_view_func
162-

0 commit comments

Comments
 (0)