ashb commented on a change in pull request #5580: [AIRFLOW-4946] Use yield from 
syntax
URL: https://github.com/apache/airflow/pull/5580#discussion_r303216456
 
 

 ##########
 File path: airflow/contrib/hooks/grpc_hook.py
 ##########
 @@ -100,8 +100,7 @@ def run(self, stub_class, call_func, streaming=False, 
data={}):
                 if not streaming:
                     yield response
                 else:
-                    for single_response in response:
-                        yield single_response
+                    yield from response
 
 Review comment:
   Nice, learn something new every day!

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


With regards,
Apache Git Services

Reply via email to