potiuk commented on PR #50482: URL: https://github.com/apache/airflow/pull/50482#issuecomment-2873717293
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. -- 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]
