ktaborski commented on issue #57621:
URL: https://github.com/apache/airflow/issues/57621#issuecomment-3520941925
Sure,
```
$ tree
.
├── dag.py
└── module
├── __init__.py
└── utils.py
```
`dag.py`:
```
from airflow.sdk import DAG
from airflow.providers.standard.operators.python import PythonOperator
from module.utils import helloWorld
with DAG(dag_id="hello_world"):
task1 = PythonOperator(
task_id="hello_world",
python_callable=helloWorld)
```
`utils.py`:
```
from airflow.sdk import DAG
from airflow.models import Variable
raise ValueError("xxx")
def helloWorld():
print("hello world")
```
`__init__.py` is empty.
This will cause 2 Dag Import Errors (from `dag.py` and from `utils.py`)
then remove from `utils.py` line `raise ValueError("xxx")`
After refresh, import error from `dag.py` is removed, but error from
`utils.py` is still visible.
--
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]