Skip to content

Conversation

@harshachinta
Copy link
Contributor

@harshachinta harshachinta commented Jan 30, 2024

The auto-generated snippets in SpannerAsyncClient documentation mentions the import as follows,

from google.cloud import spanner_v1

async def sample_batch_create_sessions():
    # Create a client
    client = spanner_v1.SpannerAsyncClient()

The above sample gives the following error

AttributeError: module 'google.cloud.spanner_v1' has no attribute 'SpannerAsyncClient'. Did you mean: 'SpannerClient'

This PR adds changes to fix this issue.

@harshachinta harshachinta requested review from a team as code owners January 30, 2024 07:11
@product-auto-label product-auto-label bot added size: xs Pull request size is extra small. api: spanner Issues related to the googleapis/python-spanner API. labels Jan 30, 2024
@harshachinta harshachinta merged commit 2d98b54 into googleapis:main Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/python-spanner API. size: xs Pull request size is extra small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants