@@ -61,7 +61,7 @@ async def handle_output(stream: EventStream) -> None:
6161 This value will also be None if the operation has no output stream.
6262 """
6363
64- response : O | None = None
64+ output : O | None = None
6565 """The initial response from the service.
6666
6767 This value may be None until ``await_output`` has been called.
@@ -98,8 +98,8 @@ async def await_output(self) -> tuple[O, EventReceiver[OE]]:
9898 :returns: A tuple containing the initial response and output stream. If the
9999 operation has no output stream, the second value will be None.
100100 """
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
103103
104104 async def close (self ) -> None :
105105 """Closes the event stream.
@@ -141,7 +141,7 @@ async def main():
141141 input_stream : EventPublisher [IE ]
142142 """An event stream that sends events to the service."""
143143
144- response : O | None = None
144+ output : O | None = None
145145 """The initial response from the service.
146146
147147 This value may be None until ``await_output`` has been called.
@@ -170,9 +170,9 @@ async def await_output(self) -> O:
170170
171171 :returns: The service's initial response.
172172 """
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
176176
177177 async def close (self ) -> None :
178178 """Closes the event stream."""
@@ -212,7 +212,7 @@ async def main():
212212 This value will also be None if the operation has no output stream.
213213 """
214214
215- response : O
215+ output : O
216216 """The initial response from the service.
217217
218218 This may include context necessary to interpret output events or prepare input
@@ -221,7 +221,7 @@ async def main():
221221
222222 def __init__ (self , output_stream : EventReceiver [OE ], output : O ) -> None :
223223 self .output_stream = output_stream
224- self .response = output
224+ self .output = output
225225
226226 async def close (self ) -> None :
227227 """Closes the event stream."""
0 commit comments