RNHTTR commented on code in PR #39724:
URL: https://github.com/apache/airflow/pull/39724#discussion_r1706144044


##########
airflow/decorators/base.py:
##########
@@ -457,6 +457,11 @@ def _expand(self, expand_input: ExpandInput, *, strict: 
bool) -> XComArg:
         end_date = timezone.convert_to_utc(partial_kwargs.pop("end_date", 
None))
         if partial_kwargs.get("pool") is None:
             partial_kwargs["pool"] = Pool.DEFAULT_POOL_NAME
+        if partial_kwargs.get("pool_slots") and partial_kwargs["pool_slots"] < 
1:

Review Comment:
   what about...
   
   ```python
   if "pool_slots" in partial_kwargs and partial_kwargs["pool_slots"] < 1:
   ```
   
   or...
   
   ```python
   if (pool_slots := partial_kwargs.get("pool_slots")) is not None and 
pool_slots < 1:
   ```



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