ashb commented on a change in pull request #5587: [AIRFLOW-4953] Remove unused 
variables in core
URL: https://github.com/apache/airflow/pull/5587#discussion_r303365013
 
 

 ##########
 File path: airflow/bin/cli.py
 ##########
 @@ -1043,7 +1043,7 @@ def serve_logs(args):
     flask_app = flask.Flask(__name__)
 
     @flask_app.route('/log/<path:filename>')
-    def serve_logs(filename):
+    def serve_logs(filename):  # pylint: disable=unused-variable
 
 Review comment:
   Ah it's on the function, not on the `filename` variable itself (which I 
guess would have been unused-argument)
   
   https://github.com/PyCQA/pylint/issues/2842 seems to cover it, and I agree 
with that bug that it can't be handled. My only confusion was I would have 
expected the error to be unused-function.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to