-
Notifications
You must be signed in to change notification settings - Fork 3k
[Storage] Decoupled Client Context Manager Methods from Base Client #41442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Storage] Decoupled Client Context Manager Methods from Base Client #41442
Conversation
/azp run python - pullrequest |
Azure Pipelines successfully started running 1 pipeline(s). |
Placed context managers directly after constructors, removed those implementations from base client (sync / async) |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews azure-storage-blob |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request decouples context manager methods from the base client into individual client implementations. The key changes include adding enter, exit, and close methods to various synchronous and asynchronous client classes, and removing these context manager methods from shared base classes.
Reviewed Changes
Copilot reviewed 32 out of 32 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_service_client.py | Added sync context manager methods (enter, exit, close) |
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_share_client.py | Added sync context manager methods with pylint disable comment for too-many-public-methods |
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.py | Added sync context manager methods |
sdk/storage/azure-storage-file-share/azure/storage/fileshare/_directory_client.py | Added sync context manager methods |
sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/* | Added async context manager methods and adjusted generated client building |
sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_shared/* | Removed context manager methods from shared base classes |
sdk/storage/azure-storage-blob/azure/storage/blob/aio/* | Added async context manager methods |
sdk/storage/azure-storage-blob/azure/storage/blob/* | Added sync context manager methods |
No description provided.