Skip to content

Added type hints to additional tests#7816

Merged
radarhere merged 3 commits into
python-pillow:mainfrom
radarhere:type_hints
Feb 20, 2024
Merged

Added type hints to additional tests#7816
radarhere merged 3 commits into
python-pillow:mainfrom
radarhere:type_hints

Conversation

@radarhere
Copy link
Copy Markdown
Member

No description provided.

Comment thread Tests/test_imagecms.py Outdated
Comment thread Tests/test_imagecms.py Outdated
| tuple[float, ...]
)
) -> tuple[tuple[float, ...], ...]:
def truncate_tuple(tuple_or_float: tuple[Any, ...]) -> tuple[Any, ...]:
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.

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
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 pushed a commit to rename it to tuple_value.

@radarhere radarhere merged commit b9d3c21 into python-pillow:main Feb 20, 2024
@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.

2 participants