--warn-unused-config should not be a strict flag#21139
Merged
Merged
Conversation
Contributor
|
Diff from mypy_primer, showing the effect of this PR on open source code: psycopg (https://github.com/psycopg/psycopg)
- pyproject.toml: note: unused section(s): module = ['polib', 'scrap.*']
mongo-python-driver (https://github.com/mongodb/mongo-python-driver)
- pyproject.toml: note: unused section(s): module = ['test.*']
sphinx (https://github.com/sphinx-doc/sphinx)
- pyproject.toml: note: unused section(s): module = ['pyximport', 'tests.test_config.test_config', 'tests.test_directives.test_directive_other', 'tests.test_domains.test_domain_c', 'tests.test_domains.test_domain_cpp', 'tests.test_domains.test_domain_js', 'tests.test_domains.test_domain_py', 'tests.test_domains.test_domain_py_fields', 'tests.test_domains.test_domain_py_pyfunction', 'tests.test_domains.test_domain_py_pyobject', 'tests.test_domains.test_domain_std', 'tests.test_environment.test_environment_toctree', 'tests.test_ext_autodoc.test_ext_autodoc', 'tests.test_ext_autodoc.test_ext_autodoc_mock', 'tests.test_ext_autosummary.test_ext_autosummary', 'tests.test_ext_intersphinx.test_ext_intersphinx', 'tests.test_ext_napoleon.test_ext_napoleon_docstring', 'tests.test_extensions.test_ext_apidoc', 'tests.test_extensions.test_ext_inheritance_diagram', 'tests.test_search', 'tests.test_util.test_util_inspect', 'tests.test_util.test_util_nodes', 'tests.test_util.test_util_typing', 'tests.test_util.typing_test_data']
svcs (https://github.com/hynek/svcs)
- pyproject.toml: note: unused section(s): module = ['conftest', 'health_check_pyramid', 'pytest.*']
pylint (https://github.com/pycqa/pylint)
- pyproject.toml: note: unused section(s): module = ['colorama', 'contributors_txt', 'coverage', 'git.*', 'mccabe', 'pytest_benchmark.*', 'sphinx.*']
dulwich (https://github.com/dulwich/dulwich)
- pyproject.toml: note: unused section(s): module = ['atheris', 'fastimport.*']
black (https://github.com/psf/black)
- pyproject.toml: note: unused section(s): module = ['tests.data.*']
packaging (https://github.com/pypa/packaging)
- pyproject.toml: note: unused section(s): module = ['pkg_resources', 'pretend', 'progress.*']
artigraph (https://github.com/artigraph/artigraph)
- pyproject.toml: note: unused section(s): module = ['sh']
bokeh (https://github.com/bokeh/bokeh)
- pyproject.toml: note: unused section(s): module = ['tests.*', 'tests.codebase.*', 'tests.support.defaults', 'tests.test_bokehjs', 'tests.test_cross', 'tests.test_defaults', 'tests.test_examples', 'tests.unit.bokeh.document.test_callbacks__document', 'tests.unit.bokeh.embed.test_standalone', 'tests.unit.bokeh.test_layouts__typing', 'tests.unit.bokeh.test_typing']
isort (https://github.com/pycqa/isort)
- pyproject.toml: note: unused section(s): module = ['importlib_metadata.*', 'tests.*']
nox (https://github.com/wntrblm/nox)
- pyproject.toml: note: unused section(s): module = ['tox.*']
boostedblob (https://github.com/hauntsaninja/boostedblob)
- pyproject.toml: note: unused section(s): module = ['tests.*', 'xmltodict.*']
|
JukkaL
approved these changes
Apr 1, 2026
hauntsaninja
pushed a commit
that referenced
this pull request
Apr 5, 2026
Fixes #21137 This flag has nothing to with type checking strictness, it is a convenience option for config maintenance.
nicopauss
pushed a commit
to Intersec/lib-common
that referenced
this pull request
Jun 4, 2026
##### [\`v1.20.1\`](https://github.com/python/mypy/blob/HEAD/CHANGELOG.md#Mypy-1201) - Always disable sync in SQLite cache (Ivan Levkivskyi, PR [21184](python/mypy#21184)) - Temporarily skip few base64 tests (Ivan Levkivskyi, PR [21193](python/mypy#21193)) - Revert `dict.__or__` typeshed change (Ivan Levkivskyi, PR [21186](python/mypy#21186)) - Fix narrowing for match case with variadic tuples (Shantanu, PR [21192](python/mypy#21192)) - Avoid narrowing `type[T]` in type calls (Shantanu, PR [21174](python/mypy#21174)) - Fix regression for catching empty tuple in except (Shantanu, PR [21153](python/mypy#21153)) - Fix reachability for frozenset and dict view narrowing (Shantanu, PR [21151](python/mypy#21151)) - Fix narrowing with chained comparison (Shantanu, PR [21150](python/mypy#21150)) - Avoid narrowing to unreachable at module level (Shantanu, PR [21144](python/mypy#21144)) - Allow dangerous identity comparisons to `Any` typed variables (Shantanu, PR [21142](python/mypy#21142)) - `--warn-unused-config` should not be a strict flag (Ivan Levkivskyi, PR [21139](python/mypy#21139)) ##### [\`v1.20.0\`](python/mypy@v1.19.1...v1.20.0) Renovate-Branch: renovate/r2026-mypy-1.x Change-Id: I88dbcfe5e6938c1401f9ffdda71a9a5e9703324a Priv-Id: ac1477044856e83cc49e7b2b61d5068c572e0b50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #21137
This flag has nothing to with type checking strictness, it is a convenience option for config maintenance.