@@ -552,7 +552,7 @@ def interpolated(self, steps):
552552 vertices = simple_linear_interpolation (self .vertices , steps )
553553 codes = self .codes
554554 if codes is not None :
555- new_codes = np .full ((( len (codes ) - 1 ) * steps + 1 , ) , Path .LINETO ,
555+ new_codes = np .full ((len (codes ) - 1 ) * steps + 1 , Path .LINETO ,
556556 dtype = self .code_type )
557557 new_codes [0 ::steps ] = codes
558558 else :
@@ -865,7 +865,7 @@ def arc(cls, theta1, theta2, n=None, is_wedge=False):
865865 if is_wedge :
866866 length = n * 3 + 4
867867 vertices = np .zeros ((length , 2 ), float )
868- codes = np .full (( length , ) , cls .CURVE4 , dtype = cls .code_type )
868+ codes = np .full (length , cls .CURVE4 , dtype = cls .code_type )
869869 vertices [1 ] = [xA [0 ], yA [0 ]]
870870 codes [0 :2 ] = [cls .MOVETO , cls .LINETO ]
871871 codes [- 2 :] = [cls .LINETO , cls .CLOSEPOLY ]
@@ -874,7 +874,7 @@ def arc(cls, theta1, theta2, n=None, is_wedge=False):
874874 else :
875875 length = n * 3 + 1
876876 vertices = np .empty ((length , 2 ), float )
877- codes = np .full (( length , ) , cls .CURVE4 , dtype = cls .code_type )
877+ codes = np .full (length , cls .CURVE4 , dtype = cls .code_type )
878878 vertices [0 ] = [xA [0 ], yA [0 ]]
879879 codes [0 ] = cls .MOVETO
880880 vertex_offset = 1
0 commit comments