Conversation
…uture Python versions; wrap it in staticmethod() if you want to preserve the old behavior
|
Validation for Azure CLI Full Test Starting...
Thanks for your contribution! |
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull Request Overview
This PR addresses future compatibility warnings in Python 3.13 by wrapping functools.partial calls in staticmethod() to preserve the current behavior and eliminate deprecation warnings.
- Wraps
functools.partialcalls instaticmethod()forAZ_PREVIEW_INFO,AZ_EXPERIMENTAL_INFO, andAZ_DEPRECATE_INFOclass attributes - Applies the fix to both command group and command decorators
- Maintains backward compatibility while preparing for future Python versions
|
Thank you for your contribution @anaclumos! We will review the pull request and get back to you soon. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@microsoft-github-policy-service agree [company="Sunghyun Cho"] |
|
@microsoft-github-policy-service agree |
|
I used the following to suppress the warnings as a workaround while waiting for this fix to be made available. export PYTHONWARNINGS="ignore::FutureWarning"or PYTHONWARNINGS="ignore::FutureWarning" az --help |
Related command
Everything, including
az loginDescription
This removes the warning script error message:
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.