From 9feb4cc5e04a01a4199da43400457cca6c0bfa05 Mon Sep 17 00:00:00 2001 From: Naofumi Yamada Date: Thu, 10 Sep 2020 05:02:04 +0900 Subject: [PATCH] fix: `update_column_spec` typo in TablesClient docstring (#18) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The docstring contains the non-existent function `update_column_specs`, and fixed it to` update_column_spec` which I think is more appropriate. The code cause AttributeError: 'TablesClient' object has no attribute 'update_column_specs'. Fixes #17 🦕 --- google/cloud/automl_v1beta1/tables/tables_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google/cloud/automl_v1beta1/tables/tables_client.py b/google/cloud/automl_v1beta1/tables/tables_client.py index f84961c5..f0a1678e 100644 --- a/google/cloud/automl_v1beta1/tables/tables_client.py +++ b/google/cloud/automl_v1beta1/tables/tables_client.py @@ -1205,7 +1205,7 @@ def update_column_spec( ... credentials=service_account.Credentials.from_service_account_file('~/.gcp/account.json'), ... project='my-project', region='us-central1') ... - >>> client.update_column_specs(dataset_display_name='my_dataset', + >>> client.update_column_spec(dataset_display_name='my_dataset', ... column_spec_display_name='Outcome', type_code='CATEGORY') ...