sjyangkevin commented on issue #54714: URL: https://github.com/apache/airflow/issues/54714#issuecomment-3704049854
> # airflow.sensors module - [x] (AIR311) airflow.sensors.base.poke_mode_only → <strike>airflow.sdk.bases.sensor.poke_mode_only</strike> [airflow.sdk.poke_mode_only](https://github.com/astral-sh/ruff/blob/26230b1ed3db02f5c2d5b9ed9d49c70062d66736/crates/ruff_linter/src/rules/airflow/rules/suggested_to_update_3_0.rs#L303) Wondering if this should be an Airflow side fix or the ruff side fix. After running some tests for AIR311 and AIR312 on Airflow 2.11.0, 3.0.6, and 3.1.5, I found that `from airflow.sdk import PokeReturnValue, poke_mode_only` will raise an import error for `poke_mode_only` (in 3.0.6 and 3.1.5). The ruff implementation moves the function to under `airflow.sdk` but on Airflow side, it is not exposed through https://github.com/apache/airflow/blob/main/task-sdk/src/airflow/sdk/__init__.py <img width="850" height="270" alt="Image" src="https://github.com/user-attachments/assets/021a650b-23a3-488a-b55d-8b6693a1e655" /> -- 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]
