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

Do not allow coords to be sequence of lists #8802

Closed
wants to merge 1 commit into from

Conversation

radarhere
Copy link
Member

Resolves #8798. Alternative to #8800

Restricts

Coords = Union[Sequence[float], Sequence[Sequence[float]]]

so that sequences of lists are not allowed.

Only one test had to be updated, from #5208. I see no reason why I tested a sequence of lists in that PR. It isn't suggested in the docs.

@hugovk
Copy link
Member

hugovk commented Mar 5, 2025

Closing in favour of #8800.

@hugovk hugovk closed this Mar 5, 2025
@radarhere radarhere deleted the coords_type_hint branch March 5, 2025 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImageDraw.line and Coords typing issue
2 participants