Skip to content

Commit

Permalink
Update azure-storage-blob version
Browse files Browse the repository at this point in the history
We restricted version in apache#18443
due to error in static checks apache#17068 (comment)
Tests pass locally with the updated version
  • Loading branch information
eladkal committed Oct 13, 2022
1 parent 21e550e commit c831502
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions airflow/providers/microsoft/azure/hooks/wasb.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def get_blobs_list(
container_name: str,
prefix: str | None = None,
include: list[str] | None = None,
delimiter: str | None = '/',
delimiter: str = '/',
**kwargs,
) -> list:
"""
Expand Down Expand Up @@ -348,7 +348,7 @@ def upload(
return blob_client.upload_blob(data, blob_type, length=length, **kwargs)

def download(
self, container_name, blob_name, offset: int | None = None, length: int | None = None, **kwargs
self, container_name, blob_name, offset: int, length: int, **kwargs
) -> StorageStreamDownloader:
"""
Downloads a blob to the StorageStreamDownloader
Expand Down
3 changes: 1 addition & 2 deletions airflow/providers/microsoft/azure/provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ dependencies:
- azure-mgmt-datafactory>=1.0.0,<2.0
- azure-mgmt-datalake-store>=0.5.0
- azure-mgmt-resource>=2.2.0
# limited due to https://github.com/Azure/azure-sdk-for-python/pull/18801 implementation released in 12.9
- azure-storage-blob>=12.7.0,<12.9.0
- azure-storage-blob>=12.14.0
- azure-storage-common>=2.1.0
- azure-storage-file>=2.1.0
# Limited due to https://github.com/Azure/azure-uamqp-python/issues/191
Expand Down
2 changes: 1 addition & 1 deletion generated/provider_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@
"azure-mgmt-datalake-store>=0.5.0",
"azure-mgmt-resource>=2.2.0",
"azure-servicebus>=7.6.1; platform_machine != \"aarch64\"",
"azure-storage-blob>=12.7.0,<12.9.0",
"azure-storage-blob>=12.14.0",
"azure-storage-common>=2.1.0",
"azure-storage-file>=2.1.0",
"azure-synapse-spark"
Expand Down

0 comments on commit c831502

Please sign in to comment.