prefer f-strings

This commit is contained in:
Jan Petykiewicz 2020-08-15 18:23:04 -07:00
commit e7c8708f7f
6 changed files with 21 additions and 20 deletions

View file

@ -322,7 +322,7 @@ class Path(Shape, metaclass=AutoSlots):
bounds[0, :] = numpy.minimum(bounds[0, :], poly_bounds[0, :])
bounds[1, :] = numpy.maximum(bounds[1, :], poly_bounds[1, :])
else:
raise PatternError('get_bounds() not implemented for endcaps: {}'.format(self.cap))
raise PatternError(f'get_bounds() not implemented for endcaps: {self.cap}')
return bounds