Skip to content

Bump mypy-strict-kwargs to 2026.8.25 - #3167

Merged
adamtheturtle merged 2 commits into
mainfrom
bump-mypy-strict-kwargs-2026.8.25
Aug 25, 2026
Merged

Bump mypy-strict-kwargs to 2026.8.25#3167
adamtheturtle merged 2 commits into
mainfrom
bump-mypy-strict-kwargs-2026.8.25

Conversation

@adamtheturtle

@adamtheturtle adamtheturtle commented Aug 25, 2026

Copy link
Copy Markdown
Member

mypy-strict-kwargs 2026.08.20.1 shipped two regressions, fixed in
2026.8.25 by adamtheturtle/mypy-strict-kwargs#796:

  • Its get_attribute_hook claimed every attribute name and so shadowed
    mypy's own default-plugin hooks, which is what gives SomeEnum.value
    its real type; every enum .value access degraded to Any.
  • The new overloaded-call call-arg check reported decorator
    applications such as @beartype, which have no keyword form.

This bumps the pin and drops the ignore_names opt-outs that were added
for the second regression. Verified locally: mypy is clean without them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CACFJDTrtojHAEbXRGoxAg


Note

Low Risk
Dev-only tooling pin and config cleanup; no runtime or application code changes.

Overview
Upgrades the dev dependency mypy-strict-kwargs from 2026.8.20.1 to 2026.8.25.1 to pick up fixes for two regressions in the older release (overly broad attribute hooks breaking enum .value typing, and false positives on decorator applications like @beartype).

Removes the [tool.mypy_strict_kwargs] ignore_names workaround that had been added for those decorator false positives, since mypy is expected to pass without those opt-outs on the new version.

Reviewed by Cursor Bugbot for commit f6d7be9. Bugbot is set up for automated code reviews on this repo. Configure here.

2026.8.20.1 lost the value type behind ``SomeEnum.value`` and reported
decorators such as ``@beartype`` as positional calls.  Both are fixed in
2026.8.25, so the ``ignore_names`` opt-outs added for them are no longer
needed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CACFJDTrtojHAEbXRGoxAg
2026.8.25.1 also stops reporting a positional argument which lands in a
``*args`` parameter, such as ``print("hello")``.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CACFJDTrtojHAEbXRGoxAg
@adamtheturtle
adamtheturtle merged commit d01293d into main Aug 25, 2026
14 checks passed
@adamtheturtle
adamtheturtle deleted the bump-mypy-strict-kwargs-2026.8.25 branch August 25, 2026 08:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant