You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/12/09 05:45:13 UTC

[GitHub] [airflow] ephraimbuddy commented on pull request #20151: Deprecate smart sensors

ephraimbuddy commented on pull request #20151:
URL: https://github.com/apache/airflow/pull/20151#issuecomment-989533980


   What do you think about using [deprecated](https://github.com/tantale/deprecated) on the Sensor Class? It gives a very nice message when a deprecated function/class is used. e.g:
   ```
   DeprecationWarning: Call to deprecated function (or staticmethod) get_pools. (Use Pool.get_pools() instead) -- Deprecated since version 2.2.3.
       pools = sorted(pool_api.get_pools(), key=lambda p: p.pool)
   ```


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org