josh-fell commented on code in PR #54219:
URL: https://github.com/apache/airflow/pull/54219#discussion_r2267091545
##########
providers/microsoft/azure/src/airflow/providers/microsoft/azure/hooks/wasb.py:
##########
@@ -591,11 +599,10 @@ def __init__(
"""Initialize the hook instance."""
self.conn_id = wasb_conn_id
self.public_read = public_read
- self.blob_service_client: AsyncBlobServiceClient = None # type: ignore
async def get_async_conn(self) -> AsyncBlobServiceClient:
"""Return the Async BlobServiceClient object."""
- if self.blob_service_client is not None:
+ if isinstance(self._blob_service_client, AsyncBlobServiceClient):
Review Comment:
Should there be a TypeError raised if this isn't an `AsyncBlobServiceClient`
object?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]