nuclearpinguin commented on a change in pull request #5431: [AIRFLOW-4782] Make
GCP hooks Pylint compatible
URL: https://github.com/apache/airflow/pull/5431#discussion_r296751320
##########
File path: airflow/contrib/hooks/gcp_sql_hook.py
##########
@@ -296,7 +302,7 @@ def export_instance(self, instance, body, project_id=None):
:return: None
"""
try:
- response = self.get_conn().instances().export(
+ response = self.get_conn().instances().export( # pylint:
disable=no-member
Review comment:
Unfortunately this doesn't work 😕 In most cases `# pylint:
disable=no-member` was used for discovery API. In those cases returned value is
a `googleapiclient.discovery.Resource` object which has no public attributes
and that's why pylint is complaining.
----------------------------------------------------------------
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