File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -91,9 +91,18 @@ class ExampleResponseWrapper:
91
91
def __init__(self, response: ExampleResponse) -> None:
92
92
self.transformed_value = f"{response.float_value:.2f}"
93
93
94
+ # Change defaults as needed
95
+ DEFAULT_CHANNEL_OPTIONS = ChannelOptions()
96
+
94
97
class MyApiClient(BaseApiClient):
95
- def __init__(self, server_url: str, *, connect: bool = True) -> None:
96
- super().__init__(server_url, connect=connect)
98
+ def __init__(
99
+ self,
100
+ server_url: str,
101
+ *,
102
+ connect: bool = True,
103
+ channel_defaults: ChannelOptions = DEFAULT_CHANNEL_OPTIONS,
104
+ ) -> None:
105
+ super().__init__(server_url, connect=connect, channel_defaults=channel_defaults)
97
106
self._stub = cast(
98
107
ExampleAsyncStub, ExampleStub(self.channel)
99
108
)
You can’t perform that action at this time.
0 commit comments