Skip to content

[syntax-errors] Positional-only parameters before Python 3.8 - #16481

Merged
ntBre merged 8 commits into
mainfrom
brent/syn-pos-only
Mar 5, 2025
Merged

ntBre merged 8 commits into
mainfrom
brent/syn-pos-only

Conversation

@ntBre

@ntBre ntBre commented Mar 3, 2025

Copy link
Copy Markdown
Contributor

Summary

Detect positional-only parameters before Python 3.8, as marked by the / separator in a parameter list.

Test Plan

Inline tests.

Summary
--

Detect positional-only parameters before Python 3.8, as marked by the `/`
separator in a parameter list.

Test Plan
--
Inline tests.
@ntBre ntBre added parser Related to the parser preview Related to preview-mode features labels Mar 3, 2025
@github-actions

github-actions Bot commented Mar 3, 2025 •

Copy link
Copy Markdown
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

Comment thread crates/ruff_python_parser/src/error.rs Outdated
Comment thread crates/ruff_python_parser/src/parser/statement.rs
Comment thread crates/ruff_python_parser/src/parser/statement.rs Outdated
Comment thread crates/ruff_python_parser/src/error.rs Outdated
Comment thread crates/ruff_python_parser/src/parser/statement.rs
@ntBre
ntBre enabled auto-merge (squash) March 5, 2025 13:43
@ntBre
ntBre merged commit d062388 into main Mar 5, 2025
@ntBre
ntBre deleted the brent/syn-pos-only branch March 5, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

parser Related to the parser preview Related to preview-mode features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants