uranusjr commented on PR #46415:
URL: https://github.com/apache/airflow/pull/46415#issuecomment-2636186625

   Old signature:
   
   ```python
   class MyOperatorLink(BaseOperatorLink):
       def get_link(self, operator, dttm):
           ...
   ```
   
   New signature:
   
   ```python
   class MyOperatorLink(BaseOperatorLink):
       def get_link(self, operator, *, ti_key):
           ...
   ```
   
   Note that in the old signature, `dttm` is used by Airflow as a _positional_ 
argument, so the argument name in the function declaration may not be `dttm`. 
In the new signature, however, the argument name must be `ti_key` (although it 
may be non-keyword-only; `self, operator, ti_key` should be considered new 
signature). So the deprecated signature detection rule should be **exactly 
three positional arguments, the third one not named `ti_key`**.
   
   Relevant documentation on operator extra link: 
https://airflow.apache.org/docs/apache-airflow/stable/howto/define-extra-link.html


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