File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ class ShapePoints(MutableSequence):
77 def __init__ (self , points ):
88 self .points = list (points )
99 if len (self .points ) < self .MIN_POINTS :
10- raise ValueError (f"Shape must have at least { self .MIN_POINTS } points" )
10+ raise ValueError (
11+ f"Shape must have at least { self .MIN_POINTS } points"
12+ )
1113 if points and self .points [0 ] != self .points [- 1 ]:
1214 self .points .append (self .points [0 ])
1315
@@ -31,7 +33,9 @@ def __contains__(self, item):
3133
3234 def __delitem__ (self , index ):
3335 if len (self ) < self .MIN_POINTS + 1 :
34- raise ValueError (f"Shape must have at least { self .MIN_POINTS } points" )
36+ raise ValueError (
37+ f"Shape must have at least { self .MIN_POINTS } points"
38+ )
3539 if index in (0 , len (self .points ) - 1 , - 1 ):
3640 del self .points [0 ]
3741 self .points [- 1 ] = self .points [0 ]
You can’t perform that action at this time.
0 commit comments