Skip to content

Bump mypy-strict-kwargs to 2026.8.25 - #1676

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#1676
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
Owner

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 typing plugin version and config cleanup; no runtime or production dependency changes.

Overview
Updates the dev pin for mypy-strict-kwargs from 2026.8.20.1 to 2026.8.25.1, picking up fixes for regressions in the older release (broken enum .value typing and spurious strict-kwargs errors on decorator uses like @beartype).

Removes the [tool.mypy_strict_kwargs] ignore_names exemption for beartype._decor.decorcache.beartype that had been added as a workaround; mypy is expected to stay clean with the plugin enabled via [tool.mypy] only.

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

adamtheturtle and others added 2 commits August 25, 2026 07:07
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 9432453 into main Aug 25, 2026
27 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