potiuk commented on a change in pull request #20234:
URL: https://github.com/apache/airflow/pull/20234#discussion_r769882067
##########
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 = cast(Dict, deepcopy(build))
Review comment:
But I used the "mypy configuration" trick to enable implicit optionals
for the google libraries too, so this PR will get WAY smaller and nicer.
--
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]