Added type hints by radarhere · Pull Request #8117 · python-pillow/Pillow

@radarhere

@radarhere

hugovk

Comment on lines +68 to +80

gradient: (
list[
tuple[
float,
float,
float,
list[float],
list[float],
Callable[[float, float], float],
]
]
| None
) = None

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also have this long type def in GimpGradientFile, is it worth assigning it to something and re-using it?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've realised we can just re-use the other variable. I've pushed a commit.

@radarhere