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


##########
task-sdk/src/airflow/sdk/definitions/partition_mappers/base.py:
##########
@@ -65,5 +80,8 @@ def __init__(self, *, upstream_mapper: PartitionMapper, 
window: Window) -> None:
                 f"{window.expected_decoded_type.__name__}, or use a window 
whose "
                 f"'expected_decoded_type' accepts str."
             )
+        if wait_policy is None:
+            wait_policy = WaitForAll()
         self.upstream_mapper = upstream_mapper
         self.window = window
+        self.wait_policy = wait_policy

Review Comment:
   This would make `self.wait_policy` inferred as `WaitPolicy | None`. I don’t 
think this is intended?



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