ashb commented on a change in pull request #6564: [AIRFLOW-5911] Simplify
lineage API and improve robustness
URL: https://github.com/apache/airflow/pull/6564#discussion_r346245600
##########
File path: airflow/models/baseoperator.py
##########
@@ -412,25 +412,12 @@ def __init__(
self._log = logging.getLogger("airflow.task.operators")
# lineage
- self.inlets = [] # type: List[DataSet]
- self.outlets = [] # type: List[DataSet]
+ self.inlets = [] # type: List[Any]
+ self.outlets = [] # type: List[Any]
self.lineage_data = None
- self._inlets = {
- "auto": False,
- "task_ids": [],
- "datasets": [],
- }
-
- self._outlets = {
- "datasets": [],
- } # type: Dict
-
- if inlets:
- self._inlets.update(inlets)
-
- if outlets:
- self._outlets.update(outlets)
+ self._inlets = inlets
+ self._outlets = outlets
Review comment:
Why do we have `self._outlets` and `self.outlets`?
----------------------------------------------------------------
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