Azure / Azure/azure-sdk-for-python

azure-monitor-querymetrics needs typing updates for mypy version 2.1.0

Open
#48,135 0 comments 1 reaction 0 assignees View on GitHub
Monitor mypy
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

**ACTION NEEDED:** This version of mypy will be merged on **2026-10-12**. The build will begin to fail for this library if errors are not fixed.

**Library name:** azure-monitor-querymetrics
**Mypy version:** 2.1.0
**Mypy Build:** [Link to build (2026-07-26)](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6617757&view=logs&j=87f850b5-cf15-53c6-370a-4be21ee70ec7&t=c4b2a078-69a7-55a2-d776-67715c71590f)
**How to fix:** Run the `next-mypy` azpysdk command at the library package-level and resolve the typing errors.
1) `/mnt/vss/_work/1/s>pip install -e ./eng/tools/azure-sdk-tools`
2) `../azure-monitor-querymetrics>azpysdk next-mypy --isolate .`

See the [Typing Guide](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/static_type_checking.md#run-mypy) for more information.

Contributor guide

Open the contributing guide

Research direction

Install the Azure SDK tools, then run `azpysdk next-mypy --isolate .` from the azure-monitor-querymetrics package as described in the issue. Read the typing guide while reviewing each reported error; done means the package's typing checks pass with mypy 2.1.0 before the merge date.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.