karenbraganz commented on PR #39724:
URL: https://github.com/apache/airflow/pull/39724#issuecomment-2269139586

   Currently, for mapped tasks these checks happen in the `__init__()` method 
of the `BaseOperator` class in baseoperator.py whereas for mapped tasks, the 
checks happen in `partial()` and `_expand()`. I can unify the checks by 
creating a function that runs these checks and then calling that function in 
`__init__()`, `partial()`, and `_expand()`. In this way, we don't have to 
repeat code in each function. I will work on creating a new commit for this. 
   
   Please let me know your thoughts on this approach. 


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