Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxWarning: invalid escape sequence '\ ' in azure-monitor-query #39033

Open
m4dh4t opened this issue Jan 6, 2025 · 3 comments
Open

SyntaxWarning: invalid escape sequence '\ ' in azure-monitor-query #39033

m4dh4t opened this issue Jan 6, 2025 · 3 comments
Assignees
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. Monitor Monitor, Monitor Ingestion, Monitor Query question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@m4dh4t
Copy link

m4dh4t commented Jan 6, 2025

  • Package Name: azure-monitor-query
  • Package Version: 1.4.0
  • Operating System: Arch Linux
  • Python Version: >=3.12

Describe the bug

.../site-packages/azure/monitor/query/_generated/metrics/operations/_operations.py:348: SyntaxWarning: invalid escape sequence '\ '
  """**Lists the metric values for a resource**.
.../site-packages/azure/monitor/query/_generated/metrics/batch/operations/_operations.py:137: SyntaxWarning: invalid escape sequence '\ '
  """Lists the metric values for multiple resources.
.../site-packages/azure/monitor/query/_generated/metrics/batch/operations/_operations.py:312: SyntaxWarning: invalid escape sequence '\ '
  """Lists the metric values for multiple resources.
.../site-packages/azure/monitor/query/_generated/metrics/batch/operations/_operations.py:479: SyntaxWarning: invalid escape sequence '\ '
  """Lists the metric values for multiple resources.

Expected behavior
No syntax warning

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 6, 2025
@xiangyan99 xiangyan99 added Monitor Monitor, Monitor Ingestion, Monitor Query Client This issue points to a problem in the data-plane of the library. and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels Jan 7, 2025
@xiangyan99
Copy link
Member

Thanks for the feedback, we’ll investigate asap.

@github-actions github-actions bot added the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Jan 7, 2025
@pvaneck
Copy link
Member

pvaneck commented Jan 8, 2025

Hey, thanks for reporting this! The generated docstring likely has some issues, so I can get those updated. Are you encountering these SyntaxWarnings from general use of the library? Or through something like pylint?

Edit: Seems like all single backslashes were converted to double backslashes in this PR which should eliminate the syntax warnings. I will cut a release with the updates soon.

@pvaneck pvaneck added issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. and removed needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team labels Jan 8, 2025
Copy link

github-actions bot commented Jan 8, 2025

Hi @m4dh4t. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. Monitor Monitor, Monitor Ingestion, Monitor Query question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

3 participants