The GitHub Actions job "Build images for Fix completion/linting/type checking with VSCode/pyright https://github.com/apache/airflow/pull/43899 " on airflow.git has succeeded. Run started by GitHub user ashb (triggered by ashb).
Head commit for run: c3c9847f49691cd18e794d62fbf21b5948d30762 / Ash Berlin-Taylor <[email protected]> Fix completion/linting/type checking with VSCode/pyright Pyright (the type engine powering VSCode's python extension) doesn't treat `airflow` as a namespace package because of the `airflow/__init__.py` and it doesn't want to/can't support detecting the `__path__ = ...` method of making it an explicit namespace package, so we are left with no option but to create Yet Another Stub File. Tested by pytting `reveal_type(FAB_VERSION); reveal_type(TaskSDKDag)` inside `_upgrade_outdated_dag_access_control` in `airflow/model/dag.py` -- before this change it was reporting both as Unknown. And to continue to keep Pycharm happy we have to have the `__path__` stanzas without future annotations in all the "empty" files. Ugly, but at least it works Report URL: https://github.com/apache/airflow/actions/runs/11794773141 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
