Added type hints by radarhere · Pull Request #8117 · python-pillow/Pillow
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters