refactor: enable PGH, PYI ruff rules and rename TCH to TC#619
Merged
mergify[bot] merged 1 commit intomainfrom Feb 26, 2026
Conversation
Owner
Author
|
This pull request is part of a stack:
|
This was referenced Feb 26, 2026
02b6308 to
9be64c4
Compare
Base automatically changed from
devs/jd/refactor/typing-cleanup/I9cbcd372905800951e853543ae3d878f76370c7a
to
main
February 26, 2026 14:06
- Add PGH (pygrep-hooks): enforces specific `# type: ignore[code]` - Add PYI (flake8-pyi): catches redundant numeric unions, stub issues - Rename deprecated TCH prefix to TC - Suppress PYI036 (false positive on string-quoted __exit__ annotations) - Fix PYI041: simplify `int | float` to `float` in wait_exponential Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Change-Id: If3863e7940c5f32e5a39d7719984f32684799bf9
9be64c4 to
812fa5a
Compare
Contributor
Merge Queue StatusRule:
This pull request spent 4 seconds in the queue, with no time running CI. Required conditions to merge |
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.
# type: ignore[code]int | floattofloatin wait_exponentialCo-Authored-By: Claude Opus 4.6 noreply@anthropic.com