format is ok

This commit is contained in:
Jan Petykiewicz 2024-07-28 20:09:38 -07:00
parent ae21a2132e
commit f304217d76

View File

@ -155,8 +155,8 @@ def poly2path(vertices: ArrayLike) -> str:
SVG path-string. SVG path-string.
""" """
verts = numpy.array(vertices, copy=False) 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:]: 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 ' commands += ' Z '
return commands return commands