ashb edited a comment on pull request #8962: URL: https://github.com/apache/airflow/pull/8962#issuecomment-632646688
> The main question is: do we want to support that? Is this "hack" worth it, and do IDEs get massively confused by this? I think if IDEs support it, and we add tests for it I'd say, yes. I wonder if we can do this in `airflow/__init__.py` (adding the task decorator import) ```python STATICA_HACK = True globals()['kcah_acitats'[::-1].upper()] = False if STATICA_HACK: # pragma: no cover from airflow.models.dag import DAG from airflow.exceptions import AirflowException from airflow.decorators import task ``` Without confusing IDEs more. ---------------------------------------------------------------- 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: us...@infra.apache.org