Skip to content

Commit 271a46d

Browse files
authored
fix: move global import in publisher sample (#866)
1 parent 7d92d2f commit 271a46d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/snippets/publisher.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"""
2323

2424
import argparse
25-
from typing import Callable
2625

2726

2827
def list_topics(project_id: str) -> None:
@@ -139,6 +138,7 @@ def publish_messages_with_error_handler(project_id: str, topic_id: str) -> None:
139138
"""Publishes multiple messages to a Pub/Sub topic with an error handler."""
140139
from concurrent import futures
141140
from google.cloud import pubsub_v1
141+
from typing import Callable
142142

143143
# TODO(developer)
144144
# project_id = "your-project-id"

0 commit comments

Comments
 (0)