@@ -53,8 +53,8 @@ class Operation(polling.PollingFuture):
5353 Args:
5454 operation (google.longrunning.operations_pb2.Operation): The
5555 initial operation.
56- refresh (Callable[[], Operation]): A callable that returns the
57- latest state of the operation.
56+ refresh (Callable[[], ~.api_core.operation. Operation]): A callable that
57+ returns the latest state of the operation.
5858 cancel (Callable[[], None]): A callable that tries to cancel
5959 the operation.
6060 result_type (func:`type`): The protobuf type for the operation's
@@ -205,7 +205,8 @@ def from_http_json(operation, api_request, result_type, **kwargs):
205205 kwargs: Keyword args passed into the :class:`Operation` constructor.
206206
207207 Returns:
208- Operation: The operation future to track the given operation.
208+ ~.api_core.operation.Operation: The operation future to track the given
209+ operation.
209210 """
210211 operation_proto = json_format .ParseDict (
211212 operation , operations_pb2 .Operation ())
@@ -261,7 +262,8 @@ def from_grpc(operation, operations_stub, result_type, **kwargs):
261262 kwargs: Keyword args passed into the :class:`Operation` constructor.
262263
263264 Returns:
264- Operation: The operation future to track the given operation.
265+ ~.api_core.operation.Operation: The operation future to track the given
266+ operation.
265267 """
266268 refresh = functools .partial (
267269 _refresh_grpc , operations_stub , operation .name )
@@ -288,7 +290,8 @@ def from_gapic(operation, operations_client, result_type, **kwargs):
288290 kwargs: Keyword args passed into the :class:`Operation` constructor.
289291
290292 Returns:
291- Operation: The operation future to track the given operation.
293+ ~.api_core.operation.Operation: The operation future to track the given
294+ operation.
292295 """
293296 refresh = functools .partial (
294297 operations_client .get_operation , operation .name )
0 commit comments