-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pub/Sub: mistake in publisher client example #6334
Comments
@anguillanneuf Is the example a mistake, or is it just a question of style? The next line uses the module-qualified name: google-cloud-python/pubsub/google/cloud/pubsub_v1/publisher/client.py Lines 156 to 157 in 23a3204
Some folks prefer "import only modules" as a practice (I'm not one of them, but the usage doesn't bother me, either). |
There is no
|
OK, the docstrings in the generated code all use this pattern: >>> from google.cloud import pubsub_v1
>>> publisher_client = pubsub_v1.PublisherClient() I will fix in the hand-written docstrings for |
It should have been
from google.cloud.pubsub_v1 import PublisherClient
in this line:google-cloud-python/pubsub/google/cloud/pubsub_v1/publisher/client.py
Line 156 in 23a3204
The text was updated successfully, but these errors were encountered: