potiuk commented on a change in pull request #20234:
URL: https://github.com/apache/airflow/pull/20234#discussion_r771818880



##########
File path: airflow/providers/google/cloud/operators/cloud_build.py
##########
@@ -910,8 +910,9 @@ class BuildProcessor:
 
     def __init__(self, build: Union[Dict, Build]) -> None:
         if isinstance(build, Build):
-            self.build = Build(build)
-        self.build = deepcopy(build)
+            self.build: Union[Dict, Build] = Build(build)
+        else:
+            self.build = deepcopy(build)

Review comment:
       Actually - just deepcopy is the only thing that is needed. I think it 
was some earlier code under if. 




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