potiuk commented on code in PR #37075:
URL: https://github.com/apache/airflow/pull/37075#discussion_r1483686305


##########
docs/apache-airflow-providers/core-extensions/deprecations.rst:
##########
@@ -0,0 +1,57 @@
+ .. Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+
+ ..   http://www.apache.org/licenses/LICENSE-2.0
+
+ .. Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+
+
+Deprecations
+==========================================
+
+This is a summary of deprecated objects in Apache Airflow Providers Packages.
+
+.. note::
+   At the moment we only show deprecations for classes, functions, methods, 
properties etc.
+   Support for an argument deprecation or an argument value deprecation will 
be added in the future.
+
+
+.. important::
+   Only deprecations made with @deprecated decorator are included in this docs.
+   If You use warnings.warn in function/method body it will not show up in 
this documentation.
+   Make sure to use @deprecated decorator as shown in the below example:

Review Comment:
   Chiming in here. I think it's difficult to make the distinction now. but we 
should be able to influence the deprecations are raised.  For example we could 
define a new 
AirfllowProviderAttributeDeprecationWarning(AirflowProviderDeprecationWarning) 
- taking the name of attribute, and new_name of the atribute as parameters. And 
only allow to use those in the body of the method.



-- 
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-unsubscr...@airflow.apache.org

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

Reply via email to