Fix syntax

This commit is contained in:
jan 2018-11-23 18:09:14 -08:00
parent 3ebb87bfc7
commit ef305cbac9

View File

@ -186,7 +186,7 @@ class Polygon(Shape):
self.remove_colinear_vertices() self.remove_colinear_vertices()
return self return self
def remove_duplicate_vertices(self) -> 'Polygon' def remove_duplicate_vertices(self) -> 'Polygon':
''' '''
Removes all consecutive duplicate (repeated) vertices. Removes all consecutive duplicate (repeated) vertices.
@ -196,7 +196,7 @@ class Polygon(Shape):
self.vertices = self.vertices[~duplicates] self.vertices = self.vertices[~duplicates]
return self return self
def remove_colinear_vertices(self) -> 'Polygon' def remove_colinear_vertices(self) -> 'Polygon':
''' '''
Removes consecutive co-linear vertices. Removes consecutive co-linear vertices.