You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/12/13 09:03:04 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #20241: Fix MyPy Errors for SSH provider

uranusjr commented on a change in pull request #20241:
URL: https://github.com/apache/airflow/pull/20241#discussion_r767525188



##########
File path: airflow/providers/ssh/operators/ssh.py
##########
@@ -206,7 +206,7 @@ def run_ssh_client_command(self, ssh_client: SSHClient, command: str) -> bytes:
         return agg_stdout
 
     def execute(self, context=None) -> Union[bytes, str]:
-        result = None
+        result: Optional[Union[bytes, str]] = None

Review comment:
       I think you can simply delete this line.




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org