Skip to content

Syntax warnings when using azure-mgmt-compute in Python 3.12 #47011

Description

@synkc
  • Package Name: azure-mgmt-compute
  • Package Version: 38.0.0
  • Operating System: Debian GNU/Linux 13 (trixie) - 13.4
  • Python Version: Python 3.12.13

Describe the bug

backend-1  | /.venv/lib/python3.12/site-packages/azure/mgmt/compute/models/_models.py:12585: SyntaxWarning: invalid escape sequence '\W'
backend-1  |   <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_])

To Reproduce
Steps to reproduce the behavior:

  1. Import packages
root@c71931a8110d:/app# python
Python 3.12.13 (main, May  8 2026, 22:41:31) [GCC 14.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from azure.mgmt.compute import ComputeManagementClient
/.venv/lib/python3.12/site-packages/azure/mgmt/compute/models/_models.py:12585: SyntaxWarning: invalid escape sequence '\W'
  <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_])
/.venv/lib/python3.12/site-packages/azure/mgmt/compute/models/_models.py:12695: SyntaxWarning: invalid escape sequence '\W'
  <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_])
/.venv/lib/python3.12/site-packages/azure/mgmt/compute/models/_models.py:23850: SyntaxWarning: invalid escape sequence '\W'
  <br>Has upper characters <br> Has a digit <br> Has a special character (Regex match [\W_])

Expected behavior
None

Screenshots
None

Additional context
None

Metadata

Metadata

Assignees

Labels

MgmtThis issue is related to a management-plane library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions