Fix type hinting issues

This commit is contained in:
XANTRONIX Development 2024-01-03 13:13:54 -05:00
parent 856592599e
commit bbe47fa982

View file

@ -213,10 +213,10 @@ class Path():
cr.rel_curve_to(*args[i:i+6]) cr.rel_curve_to(*args[i:i+6])
elif command == 'S' or command == 's': elif command == 'S' or command == 's':
for i in range(0, len(args), 4): for i in range(0, len(args), 4):
x2, y2, x, y = args[i:i+4] x2, y2, x, y = map(float, args[i:i+4])
if last[0] == 'C' or last[0] == 'c': if last[0] == 'C' or last[0] == 'c':
x1, y1 = last[1][2:4] x1, y1 = map(float, last[1][2:4])
elif last[0] == 'S' or last[0] == 's': elif last[0] == 'S' or last[0] == 's':
raise NotImplementedError raise NotImplementedError
else: else: