andrewgodwin commented on pull request #15142:
URL: https://github.com/apache/airflow/pull/15142#issuecomment-812078553


   > `from airflow.models import Label`
   > 
   > I'm not a fan of this import for in user dags (they generally don't import 
from models currently) but I don't have an immediate other suggestion
   
   Yeah, I went trawling around some example DAGs to find what path might fit, 
and I saw a couple with `models` imports for `Variable` and so forth, so I went 
with that initially. I'm not sure what `airflow.task` is for - seems pretty 
empty - but that was something else that felt feasible.
   
   


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


Reply via email to