Conversation
…SyntaxError on Python <= 3.13
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Closing after checking the repository's supported runtime. backend/pyproject.toml already requires The original The formatting commit restored the original syntax, so this PR also has no remaining diff. This was a false positive for the project's supported runtime. Sorry for the noise. |
Problem
In
backend/app/api/deps.py, line 36 catches multiple exceptions without enclosing parentheses:On Python 3 (including Python 3.10, 3.11, 3.12, and 3.13), running
python3 -m py_compile backend/app/api/deps.pyfails at parse time:Solution
Parenthesize the exception types to
except (InvalidTokenError, ValidationError):.Verification
Verified with
python3 -m py_compile backend/app/api/deps.py(exits 0).