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 to additional tests #7816

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

radarhere
Copy link
Member

No description provided.

Tests/test_imagecms.py Outdated Show resolved Hide resolved
| tuple[float, ...]
)
) -> tuple[tuple[float, ...], ...]:
def truncate_tuple(tuple_or_float: tuple[Any, ...]) -> tuple[Any, ...]:
Copy link
Member

Choose a reason for hiding this comment

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

This parameter is called tuple_or_float but typed only as a tuple.

Do we ever call it as a float? If not, shall we rename 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 pushed a commit to rename it to tuple_value.

@radarhere radarhere merged commit b9d3c21 into python-pillow:main Feb 20, 2024
56 checks passed
@radarhere radarhere deleted the type_hints branch February 20, 2024 22:25
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