josh-fell commented on a change in pull request #20034:
URL: https://github.com/apache/airflow/pull/20034#discussion_r771650276



##########
File path: airflow/providers/docker/decorators/docker.py
##########
@@ -79,7 +79,7 @@ def __init__(
             command=command, retrieve_output=True, 
retrieve_output_path="/tmp/script.out", **kwargs
         )
 
-    def execute(self, context: Dict):
+    def execute(self, context: Any):

Review comment:
       Unfortunately MyPy complains about the typing difference here between 
`_DockerDecoratedOperator` and `DecoratedOperator` with `Dict`. 
`DecoratedOperator` has `context: Context` to match `BaseOperator`. Using 
`context: Union[Context, Dict]` on `DecoratedOperator` works of course but 
seems redundant in a way.




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