Skip to content

Fix identity doc issues#41324

Merged
xiangyan99 merged 1 commit intomainfrom
identity_doc_fixes
May 28, 2025
Merged

Fix identity doc issues#41324
xiangyan99 merged 1 commit intomainfrom
identity_doc_fixes

Conversation

@xiangyan99
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings May 28, 2025 15:04
@xiangyan99 xiangyan99 requested review from a team and pvaneck as code owners May 28, 2025 15:04
Copy link
Contributor

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 PR aims to fix documentation issues in the Azure Identity SDK by updating type annotations and enhancing docstrings throughout several modules. Key changes include:

  • Updating return type annotations (adding a tilde prefix for canonical type references).
  • Adding detailed docstrings for methods such as close(), authority(), client_id(), etc.
  • Refining parameter and type descriptions to improve clarity.

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdk/identity/azure-identity/azure/identity/aio/_internal/get_token_mixin.py Updated return type in docstring for get_token_info.
sdk/identity/azure-identity/azure/identity/aio/_credentials/on_behalf_of.py Added a docstring for the close method.
sdk/identity/azure-identity/azure/identity/aio/_credentials/chained.py Updated the type annotation for credentials in the docstring.
sdk/identity/azure-identity/azure/identity/_internal/msal_credentials.py Enhanced close() method docstring with resource release information.
sdk/identity/azure-identity/azure/identity/_internal/interactive.py Added a return description to the authenticate function.
sdk/identity/azure-identity/azure/identity/_exceptions.py Improved the return documentation for scopes and claims properties.
sdk/identity/azure-identity/azure/identity/_credentials/client_assertion.py Added a detailed docstring for the close method.
sdk/identity/azure-identity/azure/identity/_constants.py Added documentation to the AzureAuthorityHosts class.
sdk/identity/azure-identity/azure/identity/_auth_record.py Added return documentation for various account property methods.
Comments suppressed due to low confidence (1)

sdk/identity/azure-identity/azure/identity/aio/_internal/get_token_mixin.py:107

  • A duplicate diff for get_token_mixin appears in the PR. Please verify if this redundancy is intentional or if the diff can be consolidated to avoid potential confusion.
:rtype: ~azure.core.credentials.AccessTokenInfo

@github-project-automation github-project-automation bot moved this from Untriaged to In Progress in Azure Identity SDK Improvements May 28, 2025
@xiangyan99 xiangyan99 merged commit a3c2812 into main May 28, 2025
39 checks passed
@xiangyan99 xiangyan99 deleted the identity_doc_fixes branch May 28, 2025 21:04
@github-project-automation github-project-automation bot moved this from In Progress to Done in Azure Identity SDK Improvements May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants