Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Commit 5952b0a

Browse files
committed
silence type errors
1 parent 3eadb30 commit 5952b0a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

google/pubsub_v1/services/publisher/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ def __init__(
725725

726726
emulator_host = os.environ.get("PUBSUB_EMULATOR_HOST")
727727
if emulator_host:
728-
if issubclass(transport_init, type(self)._transport_registry["grpc"]):
728+
if issubclass(transport_init, type(self)._transport_registry["grpc"]): # type: ignore
729729
channel = grpc.insecure_channel(target=emulator_host)
730730
else:
731731
channel = grpc.aio.insecure_channel(target=emulator_host)

google/pubsub_v1/services/subscriber/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ def __init__(
729729

730730
emulator_host = os.environ.get("PUBSUB_EMULATOR_HOST")
731731
if emulator_host:
732-
if issubclass(transport_init, type(self)._transport_registry["grpc"]):
732+
if issubclass(transport_init, type(self)._transport_registry["grpc"]): # type: ignore
733733
channel = grpc.insecure_channel(target=emulator_host)
734734
else:
735735
channel = grpc.aio.insecure_channel(target=emulator_host)
@@ -1897,7 +1897,7 @@ def request_generator():
18971897
# Wrappers in api-core should not automatically pre-fetch the first
18981898
# stream result, as this breaks the stream when re-opening it.
18991899
# https://github.com/googleapis/python-pubsub/issues/93#issuecomment-630762257
1900-
self._transport.streaming_pull._prefetch_first_result_ = False
1900+
self._transport.streaming_pull._prefetch_first_result_ = False # type: ignore
19011901

19021902
# Wrap the RPC method; this adds retry and timeout information,
19031903
# and friendly error handling.

0 commit comments

Comments
 (0)