@@ -61,7 +61,7 @@ async def handle_output(stream: EventStream) -> None:
61
61
This value will also be None if the operation has no output stream.
62
62
"""
63
63
64
- response : O | None = None
64
+ output : O | None = None
65
65
"""The initial response from the service.
66
66
67
67
This value may be None until ``await_output`` has been called.
@@ -98,8 +98,8 @@ async def await_output(self) -> tuple[O, EventReceiver[OE]]:
98
98
:returns: A tuple containing the initial response and output stream. If the
99
99
operation has no output stream, the second value will be None.
100
100
"""
101
- self .response , self .output_stream = await self ._output_future
102
- return self .response , self .output_stream
101
+ self .output , self .output_stream = await self ._output_future
102
+ return self .output , self .output_stream
103
103
104
104
async def close (self ) -> None :
105
105
"""Closes the event stream.
@@ -141,7 +141,7 @@ async def main():
141
141
input_stream : EventPublisher [IE ]
142
142
"""An event stream that sends events to the service."""
143
143
144
- response : O | None = None
144
+ output : O | None = None
145
145
"""The initial response from the service.
146
146
147
147
This value may be None until ``await_output`` has been called.
@@ -170,9 +170,9 @@ async def await_output(self) -> O:
170
170
171
171
:returns: The service's initial response.
172
172
"""
173
- if self .response is None :
174
- self .response = await self ._output_future
175
- return self .response
173
+ if self .output is None :
174
+ self .output = await self ._output_future
175
+ return self .output
176
176
177
177
async def close (self ) -> None :
178
178
"""Closes the event stream."""
@@ -212,7 +212,7 @@ async def main():
212
212
This value will also be None if the operation has no output stream.
213
213
"""
214
214
215
- response : O
215
+ output : O
216
216
"""The initial response from the service.
217
217
218
218
This may include context necessary to interpret output events or prepare input
@@ -221,7 +221,7 @@ async def main():
221
221
222
222
def __init__ (self , output_stream : EventReceiver [OE ], output : O ) -> None :
223
223
self .output_stream = output_stream
224
- self .response = output
224
+ self .output = output
225
225
226
226
async def close (self ) -> None :
227
227
"""Closes the event stream."""
0 commit comments