mirror of
https://github.com/astral-sh/ruff.git
synced 2026-10-29 03:05:49 +08:00
Summary -- As added in https://github.com/python/cpython/pull/148566, CPython now allows unary plus in match patterns, mirroring the support for unary minus. We already had a special case for this for improved error reporting and recovery, so I just swapped out the `add_error` call for `add_unsupported_syntax_error` with a new error kind. Part of https://github.com/astral-sh/ruff/issues/28206 Test Plan -- New inline parser tests