Skip to content

[pylint] Do not wrap function calls in parentheses in the fix for unnecessary-dunder-call (PLC2801)#14601

Merged
dylwil3 merged 3 commits intoastral-sh:mainfrom
dylwil3:dunder-parens
Nov 26, 2024
Merged

[pylint] Do not wrap function calls in parentheses in the fix for unnecessary-dunder-call (PLC2801)#14601
dylwil3 merged 3 commits intoastral-sh:mainfrom
dylwil3:dunder-parens

Conversation

@dylwil3
Copy link
Collaborator

@dylwil3 dylwil3 commented Nov 26, 2024

In the fix for unnecessary-dunder-call (PLC2801), when replacing the dunder call for a builtin by the function call, we no longer wrap the function call in parentheses.

Closes #14597

@github-actions
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

@dylwil3 dylwil3 changed the title [pylint] Do not wrap function calls in parentheses in the fix for dict-index-missing-items (PLC0206) [pylint] Do not wrap function calls in parentheses in the fix for unnecessary-dunder-call (PLC2801) Nov 26, 2024
@MichaReiser MichaReiser added bug Something isn't working fixes Related to suggested fixes for violations labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fixes Related to suggested fixes for violations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unnecessary parentheses when fix PLC2801

2 participants