grihabor opened a new issue, #41085:
URL: https://github.com/apache/airflow/issues/41085

   ### Apache Airflow version
   
   2.9.3
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   Wrong MRO leads to an exception when subclassing `BaseSQLOperator` and 
`BranchSQLOperator`, see below
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   ```python
   from airflow.providers.common.sql.operators import sql
   
   class Mixin(sql.BaseSQLOperator):
       pass
   
   class Branch(Mixin, sql.BranchSQLOperator):
       pass
   
   Branch(task_id='test', conn_id='abc', follow_task_ids_if_true='x', 
follow_task_ids_if_false='y')
   ```
   Output:
   ```
   AirflowException: Invalid arguments were passed to Branch (task_id: test). 
Invalid arguments were:
   **kwargs: {'follow_task_ids_if_true': 'x', 'follow_task_ids_if_false': 'y'}
   ```
   
   ### Operating System
   
   Ubuntu 22.04
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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