jedcunningham commented on code in PR #30129:
URL: https://github.com/apache/airflow/pull/30129#discussion_r1137644676
##########
airflow/models/dag.py:
##########
@@ -2215,29 +2215,40 @@ def _deepcopy_task(t) -> Operator:
def filter_task_group(group, parent_group):
"""Exclude tasks not included in the subdag from the given
TaskGroup."""
+ # We want to deepcopy _most but not all_ attributes of the task
group, so we create a shallow copy
+ # and then manually deep copy the instances. (memo argument to
deepcopy only works for instances
+ # of classes, not "native" properties of an instance, )
Review Comment:
```suggestion
# of classes, not "native" properties of an instance)
```
nit
--
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]