@@ -82,9 +82,11 @@ def slide_assumption(
8282 gp .patt ,
8383 (
8484 (
85- c2
86- if gp .pos [0 ][0 ] == c1
87- else (c1 if gp .pos [0 ][0 ] == c2 else gp .pos [0 ][0 ]),
85+ (
86+ c2
87+ if gp .pos [0 ][0 ] == c1
88+ else (c1 if gp .pos [0 ][0 ] == c2 else gp .pos [0 ][0 ])
89+ ),
8890 0 ,
8991 ),
9092 ),
@@ -99,9 +101,11 @@ def slide_assumption(
99101 gp .patt ,
100102 (
101103 (
102- c2
103- if gp .pos [0 ][0 ] == c1
104- else (c1 if gp .pos [0 ][0 ] == c2 else gp .pos [0 ][0 ]),
104+ (
105+ c2
106+ if gp .pos [0 ][0 ] == c1
107+ else (c1 if gp .pos [0 ][0 ] == c2 else gp .pos [0 ][0 ])
108+ ),
105109 0 ,
106110 ),
107111 ),
@@ -405,9 +409,11 @@ def _slide_obstructions(
405409 # The 12...n obstrudtion that connects av12 and av123
406410 yield GriddedPerm (
407411 range (n ),
408- ((av_12 , 0 ),) * (n - 1 ) + ((av_123 , 0 ),)
409- if av_12 < av_123
410- else ((av_123 , 0 ),) + ((av_12 , 0 ),) * (n - 1 ),
412+ (
413+ ((av_12 , 0 ),) * (n - 1 ) + ((av_123 , 0 ),)
414+ if av_12 < av_123
415+ else ((av_123 , 0 ),) + ((av_12 , 0 ),) * (n - 1 )
416+ ),
411417 )
412418 elif gp in self .col_info [av_123 ][2 ]:
413419 # The one with two points in av_123 are altered so that the two
@@ -435,9 +441,7 @@ def _slide_obstructions(
435441 yield gp
436442
437443 @staticmethod
438- def _gp_slide_split (
439- gp : GriddedPerm , c1 : int , c2 : int
440- ) -> Tuple [
444+ def _gp_slide_split (gp : GriddedPerm , c1 : int , c2 : int ) -> Tuple [
441445 Tuple [Deque [int ], Deque [int ], Deque [int ], Deque [int ], Deque [int ], Deque [int ]],
442446 Tuple [List [int ], List [int ], List [int ]],
443447 ]:
0 commit comments