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

Request: Autofix for redundant-numeric-union/PYI041 & redundant-literal-union/PYI051 #14185

Open
Avasam opened this issue Nov 8, 2024 · 0 comments
Labels
fixes Related to suggested fixes for violations

Comments

@Avasam
Copy link

Avasam commented Nov 8, 2024

https://docs.astral.sh/ruff/rules/redundant-numeric-union/
https://docs.astral.sh/ruff/rules/redundant-literal-union/

I lumped both rules together here because I think the fix is the exact same: drop a member of a union. Which is basically https://docs.astral.sh/ruff/rules/duplicate-union-member/ and sounds like a less complex version of https://docs.astral.sh/ruff/rules/unnecessary-literal-union/ and https://docs.astral.sh/ruff/rules/unnecessary-type-union/ which already have an autofix.

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

No branches or pull requests

2 participants