File tree 2 files changed +6
-5
lines changed
sdk/storage/azure-storage-blob/azure/storage/blob
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -883,7 +883,7 @@ def walk_blobs(
883
883
include : Optional [Union [List [str ], str ]] = None ,
884
884
delimiter : str = "/" ,
885
885
** kwargs : Any
886
- ) -> ItemPaged [BlobProperties ]:
886
+ ) -> ItemPaged [Union [ BlobProperties , BlobPrefix ] ]:
887
887
"""Returns a generator to list the blobs under the specified container.
888
888
The generator will lazily follow the continuation tokens returned by
889
889
the service. This operation will list blobs in accordance with a hierarchy,
@@ -908,8 +908,8 @@ def walk_blobs(
908
908
This value is not tracked or validated on the client. To configure client-side network timesouts
909
909
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob
910
910
#other-client--per-operation-configuration>`__.
911
- :returns: An iterable (auto-paging) response of BlobProperties.
912
- :rtype: ~azure.core.paging.ItemPaged[~azure.storage.blob.BlobProperties]
911
+ :returns: An iterable (auto-paging) response of BlobProperties or BlobPrefix .
912
+ :rtype: ~azure.core.paging.ItemPaged[~azure.storage.blob.BlobProperties or ~azure.storage.blob.BlobPrefix ]
913
913
"""
914
914
if kwargs .pop ('prefix' , None ):
915
915
raise ValueError ("Passing 'prefix' has no effect on filtering, " +
Original file line number Diff line number Diff line change @@ -873,7 +873,7 @@ def walk_blobs(
873
873
include : Optional [Union [List [str ], str ]] = None ,
874
874
delimiter : str = "/" ,
875
875
** kwargs : Any
876
- ) -> AsyncItemPaged [BlobProperties ]:
876
+ ) -> AsyncItemPaged [Union [ BlobProperties , BlobPrefix ] ]:
877
877
"""Returns a generator to list the blobs under the specified container.
878
878
The generator will lazily follow the continuation tokens returned by
879
879
the service. This operation will list blobs in accordance with a hierarchy,
@@ -899,7 +899,8 @@ def walk_blobs(
899
899
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-blob
900
900
#other-client--per-operation-configuration>`__.
901
901
:returns: An iterable (auto-paging) response of BlobProperties.
902
- :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.storage.blob.BlobProperties]
902
+ :rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.storage.blob.BlobProperties or
903
+ ~azure.storage.blob.aio.BlobPrefix]
903
904
"""
904
905
if kwargs .pop ('prefix' , None ):
905
906
raise ValueError ("Passing 'prefix' has no effect on filtering, " +
You can’t perform that action at this time.
0 commit comments