Skip to content

Fix Ruff PERF102 warning#987

Merged
inducer merged 1 commit intomainfrom
ruff-perf102
Mar 8, 2026
Merged

Fix Ruff PERF102 warning#987
inducer merged 1 commit intomainfrom
ruff-perf102

Conversation

@inducer
Copy link
Owner

@inducer inducer commented Mar 8, 2026

No description provided.

Copilot AI review requested due to automatic review settings March 8, 2026 18:44
@inducer inducer enabled auto-merge (rebase) March 8, 2026 18:44
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates TranslationUnit.__str__ to address Ruff PERF102 by avoiding unused dict keys during iteration, without changing the produced string output.

Changes:

  • Replace iteration over self.callables_table.items() with self.callables_table.values() in TranslationUnit.__str__.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@inducer inducer merged commit bbfd721 into main Mar 8, 2026
21 checks passed
@inducer inducer deleted the ruff-perf102 branch March 8, 2026 19:19
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.

2 participants