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

Commit 821fe3e

Browse files
committed
fix typing constraint for py3.7
1 parent 1d12711 commit 821fe3e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

google/cloud/pubsub_v1/subscriber/_protocol/streaming_pull_manager.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030
Optional,
3131
Set,
3232
Tuple,
33-
Union,
34-
Literal,
3533
)
3634
import uuid
3735

@@ -231,7 +229,8 @@ def _process_requests(
231229
ack_reqs_dict: Dict[str, requests.AckRequest],
232230
errors_dict: Optional[Dict[str, str]],
233231
ack_histogram: Optional[histogram.Histogram] = None,
234-
req_type: Union[Literal["ack"], Literal["modack"]] = "ack",
232+
# TODO - Change this param to a Union of Literals when we drop p3.7 support
233+
req_type: str = "ack",
235234
):
236235
"""Process requests when exactly-once delivery is enabled by referring to
237236
error_status and errors_dict.

0 commit comments

Comments
 (0)