feluelle commented on a change in pull request #5786:  [AIRFLOW-5170] 
[AIRFLOW-5256] Consistent licences for python files and related pylint fixes
URL: https://github.com/apache/airflow/pull/5786#discussion_r323773919
 
 

 ##########
 File path: docs/exts/exampleinclude.py
 ##########
 @@ -113,27 +116,32 @@ def run(self):
             extra_args["linenostart"] = reader.lineno_start
 
             container_node = nodes.container("", literal_block=True, 
classes=["example-block-wrapper"])
-            container_node += example_header(filename=filename)
+            container_node += ExampleHeader(filename=filename)
             container_node += retnode
             retnode = container_node
 
             return [retnode]
-        except Exception as exc:
+        except Exception as exc:  # pylint: disable=broad-except
             return [document.reporter.warning(str(exc), line=self.lineno)]
 
 
+# pylint: disable=protected-access
+# noinspection PyProtectedMember
 def register_source(app, env, modname):
+    """Registers source code"""
 
 Review comment:
   Could we also have some documentation about the parameter and the returning 
value, please? :)

----------------------------------------------------------------
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