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



##########
File path: airflow/models/baseoperator.py
##########
@@ -1663,24 +1664,64 @@ def _validate_kwarg_names_for_mapping(cls: 
Type[BaseOperator], func_name: str, v
         raise TypeError(f'{cls.__name__}.{func_name} got unexpected keyword 
arguments {names}')
 
 
[email protected](kw_only=True)
+def _MappedOperator_minimal_repr(cls, fields):
+    results = []
+    fields = iter(fields)
+    for field in fields:
+        results.append(field)
+        if field.name == "dag":
+            # Everything after 'dag' attribute is exluced form repr
+            break
+
+    for field in fields:
+        results.append(field.evolve(repr=False))
+    return results

Review comment:
       Fair comment.




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