From ea22e981ff1dfc87a18b026c5e775d5f08a29821 Mon Sep 17 00:00:00 2001 From: Dylan Caponi Date: Thu, 22 Oct 2020 09:32:11 -0700 Subject: [PATCH] docs: update example usage (#68) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-vision/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [x] Appropriate docs were updated (if necessary) Fixes #67 🦕 --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 7a0104ba..524e0f13 100644 --- a/README.rst +++ b/README.rst @@ -105,7 +105,7 @@ Example Usage client = vision.ImageAnnotatorClient() response = client.annotate_image({ 'image': {'source': {'image_uri': 'gs://my-test-bucket/image.jpg'}}, - 'features': [{'type': vision.enums.Feature.Type.FACE_DETECTION}], + 'features': [{'type_': vision.Feature.Type.FACE_DETECTION}] }) Next Steps