Fix syntax

lethe/HEAD
jan 6 years ago
parent 3ebb87bfc7
commit ef305cbac9

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

Loading…
Cancel
Save