Skip to content

Fix annotations of shapely.constructive.make_valid #13913

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hamdanal
Copy link
Contributor

@hamdanal hamdanal commented May 1, 2025

Fixes a regression in #13847 where some overloads were missing default values for new optional keyword arguments.

Implementation: https://github.com/shapely/shapely/blob/88309764d16846be5108a0aa236757ad97b1ba9c/shapely/constructive.py#L680-L765

This comment has been minimized.

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

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

Without looking at the changes in detail: Wouldn't it make more sense to group the overloads by method?

@hamdanal
Copy link
Contributor Author

hamdanal commented May 7, 2025

Without looking at the changes in detail: Wouldn't it make more sense to group the overloads by method?

They were in the returning scalars / returning arrays order but they can go either way so changed them as you suggested.

Copy link
Contributor

github-actions bot commented May 7, 2025

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

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.

2 participants