Closed kopecs closed 2 years ago
This PR adds support for parentheses around with context expressions. Previously, we allowed code like:
with open(x) as a, open(y) as b: pass
but not
with (open(x) as a, open(y) as b): pass
(or with a trailing comma)
After this PR, both would parse correctly.
Helps PA-1218
Test plan: tests included.
This PR adds support for parentheses around with context expressions. Previously, we allowed code like:
but not
(or with a trailing comma)
After this PR, both would parse correctly.
Helps PA-1218
Test plan: tests included.
Security