Commits
Click on a commit to change the comparison range[syntax-errors] Parenthesized keyword arguments after Python 3.8
Summary
--
Unlike the other syntax errors detected so far, parenthesized keyword arguments
are only allowed *before* 3.8. It sounds like they were only accidentally
allowed before that [^1].
I wanted to mark the whole parenthesized range instead of just the kwarg name,
so I moved the `ParsedExpr::is_parenthesized` bool to an `Option<TextRange>` and
replaced it with an `is_parenthesized` method.
Test Plan
--
Inline tests.
[^1]: https://github.com/python/cpython/issues/78822