mirror of
https://github.com/enzet/map-machine.git
synced 2025-05-16 18:46:24 +02:00
Fix Pylint warnings.
This commit is contained in:
parent
bd1efbfe2c
commit
c3dfaf0604
18 changed files with 101 additions and 71 deletions
|
@ -62,8 +62,12 @@ class Polyline:
|
|||
)
|
||||
except ValueError:
|
||||
points = self.points
|
||||
path: str = "M " + " L ".join(f"{x[0]},{x[1]}" for x in points)
|
||||
return path + (" Z" if np.allclose(points[0], points[-1]) else "")
|
||||
|
||||
return (
|
||||
"M "
|
||||
+ " L ".join(f"{point[0]},{point[1]}" for point in points)
|
||||
+ (" Z" if np.allclose(points[0], points[-1]) else "")
|
||||
)
|
||||
|
||||
def shorten(self, index: int, length: float) -> None:
|
||||
"""Make shorten part specified with index."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue