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

[syntax-errors] Make duplicate parameter names a semantic error #17131

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ntBre
Copy link
Contributor

@ntBre ntBre commented Apr 1, 2025

Status

This is a pretty minor change, but it's breaking a red-knot mdtest, so I think it should stay in draft until these errors are integrated into red-knot.

Summary

Moves Parser::validate_parameters to
SemanticSyntaxChecker::duplicate_parameter_name.

Test Plan

Existing tests, with ## Errors replaced with ## Semantic Syntax Errors.

Summary
--

Moves `Parser::validate_parameters` to
`SemanticSyntaxChecker::duplicate_parameter_name`.

Test Plan
--

Existing tests, with `## Errors` replaced with `## Semantic Syntax Errors` and
an additional case for `lambda` expressions.
@ntBre ntBre added rule Implementing or modifying a lint rule preview Related to preview mode features labels Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
preview Related to preview mode features rule Implementing or modifying a lint rule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant