Skip to content

azure-storage-blob upgrade 12.28.0 -> 12.29.0 typing error in BlobClient append_block #46936

@ghaarsma

Description

@ghaarsma
  • azure-storage-blob:
  • 12.29.0:
  • Windows / Linux:
  • 3.13:

After azure-storage-blob upgrade 12.28.0 -> 12.29.0, we are getting mypy errors when passing a str object to BlobClient append_block

mypy error log

(venv) PS C:\Users\Python\dwsc-site> mypy
storage.py:292: error: Argument "data" to "append_block" of "BlobClient" has incompatible type "str"; expected "bytes | Iterable[bytes] | IO[bytes]"  [arg-type]
storage.py:292: note: Following member(s) of "str" have conflicts:
storage.py:292: note:     Expected:
storage.py:292: note:         def __iter__(self) -> Iterator[bytes]
storage.py:292: note:     Got:
storage.py:292: note:         def __iter__(self) -> Iterator[str]

Metadata

Metadata

Labels

Service AttentionWorkflow: This issue is responsible by Azure service team.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions