format is ok
This commit is contained in:
parent
ae21a2132e
commit
f304217d76
1 changed files with 2 additions and 2 deletions
|
|
@ -155,8 +155,8 @@ def poly2path(vertices: ArrayLike) -> str:
|
|||
SVG path-string.
|
||||
"""
|
||||
verts = numpy.array(vertices, copy=False)
|
||||
commands = 'M{:g},{:g} '.format(verts[0][0], verts[0][1])
|
||||
commands = 'M{:g},{:g} '.format(verts[0][0], verts[0][1]) # noqa: UP032
|
||||
for vertex in verts[1:]:
|
||||
commands += 'L{:g},{:g}'.format(vertex[0], vertex[1])
|
||||
commands += 'L{:g},{:g}'.format(vertex[0], vertex[1]) # noqa: UP032
|
||||
commands += ' Z '
|
||||
return commands
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue