python / python/mypy

(๐Ÿž) false unused configs warning when using `no_incremental`

Open
#16,032 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
20.6k
Forks
3.3k
PR merge metrics
PR metrics pending

Description

[tool.mypy]
warn_unused_configs = true

[[tool.mypy.overrides]]
module = ['b.*']
๐Ÿ‘‰ mypy a
Success: no issues found in 1 source file
๐Ÿ‘‰ mypy a --no-incremental
Warning: unused section(s) in pyproject.toml: module = ['b.*']
Success: no issues found in 1 source file

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up โ€” it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the warning using the pyproject.toml configuration and the two mypy commands shown. Start by tracing how no-incremental mode records and checks unused override sections, then verify that the b.* section is not falsely reported when mypy a succeeds. Done means the behavior is covered by a regression test and the warning is consistent between incremental and no-incremental runs.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.