Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ruff] Improve autofix safety for never-union (RUF020) #14589

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

sbrugman
Copy link
Contributor

Summary

Resolves #14567. See also #14583.

Test Plan

Extended the test fixtures.

Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@MichaReiser MichaReiser added the fixes Related to suggested fixes for violations label Nov 25, 2024
@MichaReiser MichaReiser merged commit e8fce20 into astral-sh:main Nov 25, 2024
20 checks passed
@sbrugman sbrugman deleted the ruf020-fix-syntax-error branch November 25, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixes Related to suggested fixes for violations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fixes for PYI061 and RUF020 can generate None | None
2 participants