Added type hints to additional tests by radarhere · Pull Request #7816 · python-pillow/Pillow

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@radarhere

Copy link Copy Markdown

Member

No description provided.

| 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

Reviewers

@hugovk hugovk hugovk approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@radarhere @hugovk