Skip to content

Commit 3b53629

Browse files
committed
Follow updated PEP8 with regard to line breaks and binary operators
We need to explicitly silence "W503 line break after binary operator" because if we explicitly ignore *any* error code flake8 will report both "W503 line break before binary operator" and "W504 line break after binary operator" and that's not ideal.
1 parent bb2232c commit 3b53629

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

flask_injector.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ def wrap_class_based_view(fun: Callable, injector: Injector) -> Callable:
100100
assert not class_args, 'Class args are not supported, use kwargs instead'
101101

102102
if (
103-
flask_restful_api and
104-
flask_restplus and
105-
isinstance(flask_restful_api, flask_restplus.Api)
103+
flask_restful_api
104+
and flask_restplus
105+
and isinstance(flask_restful_api, flask_restplus.Api)
106106
):
107107
# This is flask_restplus' add_resource implementation:
108108
#

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ tag_svn_revision = 0
77
universal = 1
88

99
[flake8]
10-
ignore = E741
10+
ignore = E741,W503

0 commit comments

Comments
 (0)