Wrong type hint for azure.storage.queue.QueueClient.from_connection_string() -> None #11392
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
Workflow: This issue is responsible by Azure service team.
Storage
Storage Service (Queues, Blobs, Files)
Milestone
Describe the bug
This code implies that
azure.storage.queue.QueueClient.from_connection_string()
returnsNone
:azure-sdk-for-python/sdk/storage/azure-storage-queue/azure/storage/queue/_queue_client.py
Lines 155 to 161 in ab4f309
In contrast,
azure.storage.blob.BlobClient.from_connection_string()
returns aBlobClient
.azure-sdk-for-python/sdk/storage/azure-storage-blob/azure/storage/blob/_blob_client.py
Lines 235 to 242 in ab4f309
To Reproduce
Steps to reproduce the behavior:
# type: QueueClient
Expected type 'QueueClient', got 'None' instead
complaint.Expected behavior
Correct type declaration of QueueClient. Or, at the very least, not an incorrect & affirmative declared type of None.
The text was updated successfully, but these errors were encountered: