uranusjr commented on code in PR #32122:
URL: https://github.com/apache/airflow/pull/32122#discussion_r1255365976


##########
airflow/decorators/task_group.py:
##########
@@ -124,14 +124,14 @@ def partial(self, **kwargs: Any) -> 
_TaskGroupFactory[FParams, FReturn]:
         # TODO: fixme when mypy gets compatible with new attrs
         return attr.evolve(self, partial_kwargs=kwargs)  # type: 
ignore[arg-type]
 
-    def expand(self, **kwargs: OperatorExpandArgument) -> DAGNode:
+    def expand(self, concurrency_limit: int = None, **kwargs: 
OperatorExpandArgument) -> DAGNode:

Review Comment:
   Thinking this again, do this in _neither_ `partial` and `expand` makes 
sense, since those target the parameters of the _decorated function_, not 
_task_ parameters. The best way to do it is likely in the `@task_group` 
decorator—yes this makes the argument appear when the task is not mapped, but 
in the case it can simply be a no-op, which should be fine as long as it is 
appropriately documented. This would also make it possible to use the argument 
in non-decorator version of the task group.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to