ashb opened a new pull request, #43899:
URL: https://github.com/apache/airflow/pull/43899

   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.
   


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

Reply via email to