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

Commit fd5c07b

Browse files
committed
define cache in API layer
1 parent fd827c6 commit fd5c07b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

gapic/schema/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ def disambiguate_keyword_sanitize_fname(
456456
# type into the proto file that defines an LRO.
457457
# We just load all the APIs types first and then
458458
# load the services and methods with the full scope of types.
459+
context_cache = {}
459460
pre_protos: Dict[str, Proto] = dict(prior_protos or {})
460461
for fd in file_descriptors:
461462
fd.name = disambiguate_keyword_sanitize_fname(fd.name, pre_protos)

0 commit comments

Comments
 (0)