uranusjr commented on code in PR #27609:
URL: https://github.com/apache/airflow/pull/27609#discussion_r1023337543


##########
airflow/models/taskinstance.py:
##########
@@ -2571,6 +2571,7 @@ def __eq__(self, other):
         return NotImplemented
 
     def as_dict(self):
+        warnings.warn("This method is deprecated.  Use 
BaseSerialization.serialize.", DeprecationWarning)

Review Comment:
   Probably should have `stacklevel=2` to make the warning show the previous 
stack?



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