From adfce6bcd0e66b9d02f2354c89b6fb94c7feb73f Mon Sep 17 00:00:00 2001 From: tasherif-msft <69483382+tasherif-msft@users.noreply.github.com> Date: Mon, 1 Mar 2021 12:02:11 -0800 Subject: [PATCH] Fixed delete_blob method signature (#16983) --- .../azure-storage-blob/azure/storage/blob/_blob_client.py | 2 +- .../azure/storage/blob/aio/_blob_client_async.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py b/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py index 01fc58ec28fd..6806419ad73a 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py @@ -985,7 +985,7 @@ def _delete_blob_options(self, delete_snapshots=False, **kwargs): return options @distributed_trace - def delete_blob(self, delete_snapshots=False, **kwargs): + def delete_blob(self, delete_snapshots=None, **kwargs): # type: (str, **Any) -> None """Marks the specified blob for deletion. diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_blob_client_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_blob_client_async.py index 54a4e488b162..84cd3e3a6c9a 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_blob_client_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_blob_client_async.py @@ -463,7 +463,7 @@ async def download_blob(self, offset=None, length=None, **kwargs): return downloader @distributed_trace_async - async def delete_blob(self, delete_snapshots=False, **kwargs): + async def delete_blob(self, delete_snapshots=None, **kwargs): # type: (str, Any) -> None """Marks the specified blob for deletion.