ashb commented on code in PR #73615:
URL: https://github.com/apache/airflow/pull/73615#discussion_r4082692489
##########
providers/google/src/airflow/providers/google/cloud/hooks/bigquery.py:
##########
@@ -101,7 +101,11 @@
"or set `use_legacy_sql=False` to use GoogleSQL."
)
-BigQueryJob = CopyJob | QueryJob | LoadJob | ExtractJob
+if TYPE_CHECKING:
+ BigQueryJob = CopyJob | QueryJob | LoadJob | ExtractJob
+else:
+ # Mocked google libs break the union, but the name must exist for runtime
importers.
Review Comment:
```suggestion
# Mocked google libs during docs build break the union, but the name
must exist for runtime importers.
```
--
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]