amoghrajesh commented on PR #50482:
URL: https://github.com/apache/airflow/pull/50482#issuecomment-2875291367

   > This is pretty unintended usage of those utils. The way how it works is 
that you should add those dicts and call those methods in in `__init__.py` of 
the packages which contain deprecated modules - this way we avoid having even 
the module files. Recently @amoghrajesh made similar assumption and he added 
docstring to the classes explaining it better.
   > 
   > 
https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/utils/deprecation_tools.py#L83
   > 
   > See for example the usage 
https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/decorators/__init__.py
 - that leaves behind only folder with `__init__,py` and no module files at all.
   
   Ah! My bad for the review. I encountered the same issue but didn't look 
carefully enough.


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