Skip to content

Rename ASYNC126 to ASYNC402 - #478

Open
Eliot5566 wants to merge 1 commit into
python-trio:mainfrom
Eliot5566:rename-async126-to-async402
Open

Eliot5566 wants to merge 1 commit into
python-trio:mainfrom
Eliot5566:rename-async126-to-async402

Conversation

@Eliot5566

Copy link
Copy Markdown
  • Motivation: Renumber ASYNC126 to ASYNC402 and move it to the ExceptionGroup rules category (Rename ASYNC126 to ASYNC4xx #457).
  • Changes: Update the rule location, tests, and documentation without changing the original logic.
  • Breaking change: Existing ASYNC126 configurations must be updated to ASYNC402.
  • Tests: 1179 passed, 147 skipped. The remaining 5 failures also occur on the main branch.

I used Claude to help write and test this change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Hq1ACTsK85bRrY28fUQ7b3

The rule checks ExceptionGroup subclasses for a missing `derive`
override, which has nothing to do with async code, so it belongs with
the other exception group rules in the 4xx range. Move the visitor to
visitor4xx.py, rename the eval file, and bump the version to 26.11.1.

Fixes python-trio#457

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hq1ACTsK85bRrY28fUQ7b3
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