Skip to content

Shapely: Add typing to kwargs arguments#15859

Merged
srittau merged 5 commits into
python:mainfrom
jack-volantautonomy:Shapely-type-ufunc-kwargs
Jun 2, 2026
Merged

Shapely: Add typing to kwargs arguments#15859
srittau merged 5 commits into
python:mainfrom
jack-volantautonomy:Shapely-type-ufunc-kwargs

Conversation

@jack-volantautonomy
Copy link
Copy Markdown
Contributor

@jack-volantautonomy jack-volantautonomy commented Jun 2, 2026

The aim of this PR is to add a typing to all the kwargs arguments of the methods in the files I modify.

In future it would be nice to type these better or if numpy.typing includes a typing for this kwargs argument for ufunc.kwargs, but I cannot see anything at current. At this moment, this seems like the most logical and simple fix for this exact issue.

@jack-volantautonomy jack-volantautonomy changed the title Shapely: Add Any typing to kwargs arguments Shapely: Add typing to kwargs arguments Jun 2, 2026
@jack-volantautonomy jack-volantautonomy marked this pull request as draft June 2, 2026 13:20
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

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

@jack-volantautonomy jack-volantautonomy marked this pull request as ready for review June 2, 2026 14:30
Copy link
Copy Markdown
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.

Thanks! This looks very useful.

@srittau srittau merged commit da65515 into python:main Jun 2, 2026
44 checks passed
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