Skip to content

Conversation

weirongw23-msft
Copy link
Member

No description provided.

@weirongw23-msft weirongw23-msft marked this pull request as ready for review July 18, 2025 18:39
@Copilot Copilot AI review requested due to automatic review settings July 18, 2025 18:39
@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Jul 18, 2025
Copy link
Contributor

@Copilot Copilot AI left a 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 merges the File Share Named Keywords branch into main, introducing comprehensive type stubs (.pyi files) for the Azure Storage File Share SDK's async client components and updating the synchronous lease client implementation. The changes enhance type safety and developer experience through improved type annotations and code quality improvements.

Key changes include:

  • Addition of complete type stub files for async client classes
  • Type safety improvements in the lease client implementation
  • Enhanced code formatting and consistency across the codebase

Reviewed Changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
aio/_share_service_client_async.pyi New type stub for async share service client with comprehensive method signatures
aio/_share_client_async.pyi New type stub for async share client with all share management operations
aio/_lease_async.pyi New type stub for async lease client operations
aio/_lease_async.py Updated implementation with improved formatting and type safety
aio/_file_client_async.pyi New type stub for async file client with file operations
aio/_directory_client_async.pyi New type stub for async directory client with directory operations
_share_service_client.pyi New type stub for sync share service client
_share_client.pyi New type stub for sync share client
_lease.pyi New type stub for sync lease client
_lease.py Updated implementation with type safety improvements
_file_client.pyi New type stub for sync file client
_directory_client.pyi New type stub for sync directory client
Comments suppressed due to low confidence (2)

sdk/storage/azure-storage-file-share/azure/storage/fileshare/_file_client.pyi:276

  • Parameter naming inconsistency: sync version uses 'if_modified_since' while async version uses 'source_if_modified_since'. This could cause confusion for developers switching between sync and async versions.
        if_modified_since: Optional[datetime] = None,

@weirongw23-msft weirongw23-msft changed the title [Storage] [Named Keywords] [File Share] Merge File Share NK Branch into Main [Storage] [Named Keywords] File Share Package Jul 18, 2025
Copy link

github-actions bot commented Jul 18, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure-storage-file-share

Copy link
Member

@vincenttran-msft vincenttran-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comments about consistency between lease sync and async.

Also need to correct the keywords for rename_file it seems?

Copy link
Member

@vincenttran-msft vincenttran-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit: But let Jacob take the last pass

@weirongw23-msft weirongw23-msft merged commit 62ab762 into main Aug 7, 2025
19 checks passed
@weirongw23-msft weirongw23-msft deleted the feature/storage-fs-pyi branch August 7, 2025 20:14
weirongw23-msft added a commit to weirongw23-msft/azure-sdk-for-python that referenced this pull request Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants