File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed
Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 1414<!-- Changes that affect Black's stable style -->
1515
1616- Don't double-decode input, causing non-UTF-8 files to be corrupted (#4964 )
17+ - Fix crash on standalone comment in lambda default arguments (#4993 )
1718
1819### Preview style
1920
Original file line number Diff line number Diff line change @@ -689,7 +689,7 @@ def is_one_sequence_between(
689689 break
690690
691691 else :
692- raise LookupError ( "Opening paren not found in `leaves`" )
692+ return False
693693
694694 commas = 0
695695 _opening_index += 1
Original file line number Diff line number Diff line change 1+ help (lambda x = (
2+ # comment
3+ "bar" ,
4+ ): False )
5+
6+ result = (lambda x = (
7+ # a standalone comment
8+ 1 ,
9+ 2 ,
10+ 3 ,
11+ ): x )
12+
13+ # output
14+
15+ help (
16+ lambda x = (
17+ # comment
18+ "bar" ,
19+ ): False ,
20+ )
21+
22+ result = lambda x = (
23+ # a standalone comment
24+ 1 ,
25+ 2 ,
26+ 3 ,
27+ ): x
You can’t perform that action at this time.
0 commit comments