gopidesupavan commented on code in PR #49818:
URL: https://github.com/apache/airflow/pull/49818#discussion_r2063072433


##########
task-sdk/src/airflow/sdk/api/client.py:
##########
@@ -231,12 +232,16 @@ def get_count(
         # Remove None values from params
         params = {k: v for k, v in params.items() if v is not None}
 
+        if map_index is not None and map_index >= 0:
+            params.update({"map_index": map_index})  # type: ignore[dict-item]

Review Comment:
   had to type ignore, otherwise am getting this one.
   ```
   task-sdk/src/airflow/sdk/api/client.py:263: error: Dict entry 0 has
   incompatible type "str": "int"; expected "str": "Union[str, list[str], 
None]" 
   [dict-item]
                   params.update({"map_index": map_index})
   
   ```



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