From bb9a00d9201f8a6df6c30ca843b6121cec381af8 Mon Sep 17 00:00:00 2001 From: Daniel Grossmann-Kavanagh Date: Mon, 9 Jul 2018 19:11:42 -0700 Subject: [PATCH] codacy lint --- connexion/decorators/response.py | 2 +- examples/openapi3/sqlalchemy/app.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/connexion/decorators/response.py b/connexion/decorators/response.py index 59d539102..a64f43f6a 100644 --- a/connexion/decorators/response.py +++ b/connexion/decorators/response.py @@ -74,7 +74,7 @@ def is_json_schema_compatible(self, response_schema): """ if not response_schema: return False - return (all_json([self.mimetype]) or self.mimetype == 'text/plain') + return all_json([self.mimetype]) or self.mimetype == 'text/plain' def __call__(self, function): """ diff --git a/examples/openapi3/sqlalchemy/app.py b/examples/openapi3/sqlalchemy/app.py index 0d41a090e..80579422b 100755 --- a/examples/openapi3/sqlalchemy/app.py +++ b/examples/openapi3/sqlalchemy/app.py @@ -60,4 +60,4 @@ def shutdown_session(exception=None): if __name__ == '__main__': - app.run(port=8081, use_reloader=False, threaded=False) + app.run(port=8081, use_reloader=False, threaded=False)