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

   This PR resolves issue #60478 by formally integrating the TaskInstance class 
into the Airflow 3.0 Task SDK public interface. While the TaskInstance model 
was previously defined within the internal _generated.py datamodels, it lacked 
public exposure, which created a gap in both user-facing type hinting and the 
auto-generated API documentation. To fix this, I have modified the 
task-sdk/src/airflow/sdk/__init__.py file to include TaskInstance in the 
__all__ exports, the TYPE_CHECKING block for IDE support, and the 
__lazy_imports dictionary to maintain the SDK's performance standards. 
Additionally, I updated task-sdk/docs/api.rst with the autoapiclass directive, 
enabling Sphinx-AutoAPI to correctly resolve the path and render the class 
attributes—such as run_id, map_index, and dag_version_id—in the official 
documentation. These changes were verified by successfully importing the class 
via a modified PYTHONPATH in a local environment, ensuring that users can now 
interact with a sta
 ble, documented public API for task instances.


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