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

Commit b50adfc

Browse files
committed
updated wrapped methods type
1 parent 51b2253 commit b50adfc

File tree

2 files changed

+6
-2
lines changed
  • gapic
    • ads-templates/%namespace/%name/%version/%sub/services/%service/transports
    • templates/%namespace/%name_%version/%sub/services/%service/transports

2 files changed

+6
-2
lines changed

gapic/ads-templates/%namespace/%name/%version/%sub/services/%service/transports/base.py.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block content %}
44

55
import abc
6-
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
6+
from typing import Any, Awaitable, Callable, Dict, Optional, Sequence, Union
77

88
import google.auth # type: ignore
99
import google.api_core # type: ignore
@@ -98,6 +98,8 @@ class {{ service.name }}Transport(abc.ABC):
9898
host += ':443'
9999
self._host = host
100100

101+
self._wrapped_methods: Dict[Callable[..., Any], Callable[..., Any]] = {}
102+
101103
# Save the scopes.
102104
self._scopes = scopes
103105

gapic/templates/%namespace/%name_%version/%sub/services/%service/transports/base.py.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block content %}
44

55
import abc
6-
from typing import Awaitable, Callable, Dict, Optional, Sequence, Union
6+
from typing import Any, Awaitable, Callable, Dict, Optional, Sequence, Union
77

88
{% set package_path = api.naming.module_namespace|join('.') + "." + api.naming.versioned_module_name %}
99
from {{package_path}} import gapic_version as package_version
@@ -143,6 +143,8 @@ class {{ service.name }}Transport(abc.ABC):
143143
host += ':443'
144144
self._host = host
145145

146+
self._wrapped_methods: Dict[Callable[..., Any], Callable[..., Any]] = {}
147+
146148
@property
147149
def host(self):
148150
return self._host

0 commit comments

Comments
 (0)