Fixed delete_snapshots type
@@ -967,8 +967,8 @@ class BlobClient(StorageAccountHostsMixin): # pylint: disable=too-many-public-m
error_cls=error_cls)
@staticmethod
- def _generic_delete_blob_options(delete_snapshots=False, **kwargs):
- # type: (bool, **Any) -> Dict[str, Any]
+ def _generic_delete_blob_options(delete_snapshots=None, **kwargs):
+ # type: (str, **Any) -> Dict[str, Any]
access_conditions = get_access_conditions(kwargs.pop('lease', None))
mod_conditions = get_modify_conditions(kwargs)
if delete_snapshots:
@@ -982,8 +982,8 @@ class BlobClient(StorageAccountHostsMixin): # pylint: disable=too-many-public-m
options.update(kwargs)
return options
- def _delete_blob_options(self, delete_snapshots=False, **kwargs):
- # type: (bool, **Any) -> Dict[str, Any]
+ def _delete_blob_options(self, delete_snapshots=None, **kwargs):
+ # type: (str, **Any) -> Dict[str, Any]
if self.snapshot and delete_snapshots:
raise ValueError("The delete_snapshots option cannot be used with a specific snapshot.")
options = self._generic_delete_blob_options(delete_snapshots, **kwargs)
