From 3bb565b642bb531933e977fef1e931e217e1f41e Mon Sep 17 00:00:00 2001 From: HemangChothani <50404902+HemangChothani@users.noreply.github.com> Date: Sat, 11 Jan 2020 02:44:08 +0530 Subject: [PATCH] fix(storage): fix document of delete blob (#10015) --- storage/google/cloud/storage/blob.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/storage/google/cloud/storage/blob.py b/storage/google/cloud/storage/blob.py index aa1ab6f6cbb3..bc97120e8790 100644 --- a/storage/google/cloud/storage/blob.py +++ b/storage/google/cloud/storage/blob.py @@ -546,15 +546,11 @@ def delete(self, client=None): :param client: Optional. The client to use. If not passed, falls back to the ``client`` stored on the blob's bucket. - :rtype: :class:`Blob` - :returns: The blob that was just deleted. :raises: :class:`google.cloud.exceptions.NotFound` (propagated from :meth:`google.cloud.storage.bucket.Bucket.delete_blob`). """ - return self.bucket.delete_blob( - self.name, client=client, generation=self.generation - ) + self.bucket.delete_blob(self.name, client=client, generation=self.generation) def _get_transport(self, client): """Return the client's transport.