Skip to content

[pyupgrade] Fix UP008 to not apply when __class__ is a local variable (UP008)#20497

Merged
ntBre merged 2 commits intoastral-sh:mainfrom
danparizher:fix-20491
Sep 23, 2025
Merged

[pyupgrade] Fix UP008 to not apply when __class__ is a local variable (UP008)#20497
ntBre merged 2 commits intoastral-sh:mainfrom
danparizher:fix-20491

Conversation

@danparizher
Copy link
Contributor

Summary

Fixes #20491

@github-actions
Copy link
Contributor

github-actions bot commented Sep 21, 2025

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@ntBre ntBre added the bug Something isn't working label Sep 23, 2025
Copy link
Contributor

@ntBre ntBre left a comment

Choose a reason for hiding this comment

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

Thank you!

@danparizher danparizher requested a review from ntBre September 23, 2025 14:43
@ntBre ntBre merged commit 46decd4 into astral-sh:main Sep 23, 2025
36 checks passed
@danparizher danparizher deleted the fix-20491 branch September 23, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

UP008 should not apply when __class__ is a local variable

2 participants