Simplified code

This commit is contained in:
Andrew Murray 2024-06-09 22:13:01 +10:00
parent 56fa3c658a
commit 56c79b6f52

View File

@ -128,16 +128,7 @@ class GimpGradientFile(GradientFile):
count = int(line)
gradient: list[
tuple[
float,
float,
float,
list[float],
list[float],
Callable[[float, float], float],
]
] = []
self.gradient = []
for i in range(count):
s = fp.readline().split()
@ -155,6 +146,4 @@ class GimpGradientFile(GradientFile):
msg = "cannot handle HSV colour space"
raise OSError(msg)
gradient.append((x0, x1, xm, rgb0, rgb1, segment))
self.gradient = gradient
self.gradient.append((x0, x1, xm, rgb0, rgb1, segment))