potix2 commented on a change in pull request #11531:
URL: https://github.com/apache/airflow/pull/11531#discussion_r505801559



##########
File path: airflow/providers/amazon/aws/hooks/sagemaker.py
##########
@@ -309,8 +303,8 @@ def multi_stream_iter(self, log_group, streams, 
positions=None):
                 events.append(None)
 
         while any(events):
-            i = argmin(events, lambda x: x['timestamp'] if x else 9999999999)
-            yield (i, events[i])
+            i = argmin(events, lambda x: x['timestamp'] if x else 9999999999) 
or 0

Review comment:
       `argmin`'s type is `Optional[T]` so we need to pass the default value.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to