ashb commented on a change in pull request #19965:
URL: https://github.com/apache/airflow/pull/19965#discussion_r771580567



##########
File path: airflow/models/baseoperator.py
##########
@@ -792,6 +854,8 @@ def __setattr__(self, key, value):
         if self._lock_for_execution:
             # Skip any custom behaviour during execute
             return
+        if key in self.__init_kwargs:

Review comment:
       In apply_defaults:
   
   ```
               if not hasattr(self, '_BaseOperator__init_kwargs'):
                   self._BaseOperator__init_kwargs = {}
   
               result = func(self, **kwargs, default_args=default_args)
               # Store the args passed to init -- we need them to support 
task.map serialzation!
               self._BaseOperator__init_kwargs.update(kwargs)  # type: ignore
   ```




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