Files
openide/python/testData/highlighting/exceptClauseMissingParentheses.py
Marcus Mewsandintellij-monorepo-bot 63abd60ba4 PY-84077 - Support PEP 758 – Allow except and except* expressions without parentheses
- adjust parser to support comma separated list of error classes
- add problem annotation and quick fix for missing parentheses
- add new tests, adjust old tests

GitOrigin-RevId: a1b9bdf252ac874aa7bd1a6881c1784259bb35cc
2025-09-15 08:33:03 +00:00

5 lines
186 B
Python

def f():
try:
pass
except <error descr="Parentheses are required when specifying a target for multiple exception classes">ValueError, TypeError</error> as e:
pass