Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added type hints #8117

Merged
merged 2 commits into from
Jun 9, 2024
Merged

Added type hints #8117

merged 2 commits into from
Jun 9, 2024

Conversation

radarhere
Copy link
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
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
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
56 checks passed
@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.

None yet

2 participants