KoviAnusha commented on code in PR #56921:
URL: https://github.com/apache/airflow/pull/56921#discussion_r2458842215


##########
airflow-core/src/airflow/exceptions.py:
##########
@@ -472,14 +474,14 @@ class PodReconciliationError(AirflowException):  # type: 
ignore[no-redef]
         """Raised when an error is encountered while trying to merge pod 
configs."""
 
 
-class RemovedInAirflow4Warning(DeprecationWarning):
+class RemovedInAirflow4Warning(DeprecatedImportWarning):
     """Issued for usage of deprecated features that will be removed in 
Airflow4."""
 
     deprecated_since: str | None = None
     "Indicates the airflow version that started raising this deprecation 
warning"
 
 
-class AirflowProviderDeprecationWarning(DeprecationWarning):
+class AirflowProviderDeprecationWarning(DeprecatedImportWarning):

Review Comment:
   Addressed



##########
airflow-core/src/airflow/configuration.py:
##########
@@ -59,7 +60,7 @@
 
 # show Airflow's deprecation warnings
 if not sys.warnoptions:
-    warnings.filterwarnings(action="default", category=DeprecationWarning, 
module="airflow")
+    warnings.filterwarnings(action="default", 
category=DeprecatedImportWarning, module="airflow")

Review Comment:
   Addressed



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