Taragolis commented on issue #37463:
URL: https://github.com/apache/airflow/issues/37463#issuecomment-1952165652
This works fine to me
```python
from airflow import DAG
from airflow.decorators import task
from airflow.lineage import AUTO
from datetime import datetime, timedelta
from airflow.operators.empty import EmptyOperator
DAG_ID = "test_lineage"
with DAG(
dag_id=DAG_ID,
schedule=None,
start_date=datetime(2021, 1, 1),
dagrun_timeout=timedelta(minutes=5),
catchup=False,
) as dag:
f = "filename"
op1 = EmptyOperator(
task_id="leave1",
outlets=[f],
)
@task(inlets=AUTO)
def test_inlets(**kwargs):
task_ = kwargs["task"]
assert task_.inlets == [f], f"{task_.inlets} != {[f]}"
```
I'm surprised that someone use [Experimental
Linage](https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/lineage.html)
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]