justinpakzad commented on code in PR #75022:
URL: https://github.com/apache/airflow/pull/75022#discussion_r4498078507
##########
task-sdk/src/airflow/sdk/definitions/xcom_arg.py:
##########
@@ -400,7 +400,15 @@ class _MapResult(Sequence):
callables: MapCallables
def __getitem__(self, index: Any) -> Any:
- value = self.value[index]
+ if isinstance(self.value, dict):
+ length = len(self.value)
+ if index < 0:
Review Comment:
Good find, I've added a section in the PR description mentioning the change.
--
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]