Skip to content

Commit 926eb3c

Browse files
committed
fix(generator): rename requests import to request to match api-core
1 parent e243bbd commit 926eb3c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/_compat.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import uuid
44

55
try:
6-
from google.api_core.gapic_v1.requests import setup_request_id # type: ignore
6+
from google.api_core.gapic_v1.request import setup_request_id # type: ignore
77
except ImportError: # pragma: NO COVER
88
# TODO(https://github.com/googleapis/google-cloud-python/issues/17813): Remove this fallback when google-api-core >= 2.26.0 is the minimum required version.
99
def setup_request_id(request, field_name: str, is_proto3_optional: bool): # pragma: NO COVER

0 commit comments

Comments
 (0)