Skip to content

SyntaxWarning: invalid escape sequence '\W' #44637

@sebcwill

Description

@sebcwill
  • Package Name: azure-search-documents
  • Package Version: 11.6.0
  • Operating System: Linux
  • Python Version: 3.13.8

Describe the bug
When loading the package with antenv on a Azure App Service running Linux, the following error is thrown:
.../antenv/lib/python3.13/site-packages/azure/search/documents/indexes/_generated/models/_models_py3.py:6005: SyntaxWarning: invalid escape sequence '\W' pattern: str = "\W+", .../antenv/lib/python3.13/site-packages/azure/search/documents/indexes/_generated/models/_models_py3.py:6230: SyntaxWarning: invalid escape sequence '\W' pattern: str = "\W+",

To Reproduce
Steps to reproduce the behavior:
Load the azure-search-documents package in Python 3.13.8 on Linux, using package version 11.6.0.

Expected behavior
No error should be thrown.

Additional context
Problem is fixed in 11.7.0b2, as string has 'r' added to it: lines 8841 and 9066 -> pattern: str = r"\W+",. Therefore an addition to the next stable release would be highly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    SearchService AttentionWorkflow: This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe 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