Skip to content

Added type hints#8117

Merged
hugovk merged 2 commits intopython-pillow:mainfrom
radarhere:type_hint
Jun 9, 2024
Merged

Added type hints#8117
hugovk merged 2 commits intopython-pillow:mainfrom
radarhere:type_hint

Conversation

@radarhere
Copy link
Copy Markdown
Member

No description provided.

Comment on lines +68 to +80
gradient: (
list[
tuple[
float,
float,
float,
list[float],
list[float],
Callable[[float, float], float],
]
]
| None
) = None
Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Member Author

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.

@hugovk hugovk merged commit 53e82e4 into python-pillow:main Jun 9, 2024
@radarhere radarhere deleted the type_hint branch June 9, 2024 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants