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/15 20:39:42 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #20329: Fix MyPy for Google Bigquery

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



##########
File path: airflow/providers/google/cloud/operators/bigquery.py
##########
@@ -91,7 +91,7 @@ def get_link(self, operator: BaseOperator, dttm: datetime):
 
 
 class _BigQueryDbHookMixin:
-    def get_db_hook(self) -> BigQueryHook:
+    def get_db_hook(self: 'BigQueryCheckOperator') -> BigQueryHook:  # type:ignore[misc]

Review comment:
       This is a  nice trick to trade 5 type: ignores for below self.* references with one # type: ignore !




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