Files
openide/python/testData/highlighting/exceptClauseMissingParentheses.py
Marcus Mews dcb6914323 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: 545f3597a488f85ba2ff17da0a389f2aed226406
2025-09-15 12:58:49 +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