potiuk commented on a change in pull request #7138: [AIRFLOW-5912] Expose
lineage API
URL: https://github.com/apache/airflow/pull/7138#discussion_r368301392
##########
File path: airflow/lineage/__init__.py
##########
@@ -165,6 +163,10 @@ def wrapper(self, context, *args, **kwargs):
self.outlets.extend(self._outlets)
+ # render inlets and outlets
+ self.inlets = [_render_object(i, context)
+ for i in self.inlets if attr.has(i)]
+
Review comment:
I think we should use the same convention here for both inlets/outlets
rendering - either list comprehension or list(map(filter ? The list
comprehension looks quite a bit cleaner IMHO.
----------------------------------------------------------------
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