From 942d64efc83c001ba68ace3bd90e7e1cc2972e60 Mon Sep 17 00:00:00 2001 From: Naofumi Yamada Date: Mon, 9 Mar 2020 11:33:42 +0900 Subject: [PATCH] fix: `update_column_spec` typo in docstring 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'. --- 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 32137db2..1f97bc55 100644 --- a/google/cloud/automl_v1beta1/tables/tables_client.py +++ b/google/cloud/automl_v1beta1/tables/tables_client.py @@ -1185,7 +1185,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') ...