Skip to content

shapely: narrower types for geom_type in BaseGeometry subclasses - #15955

Merged
srittau merged 1 commit into
python:mainfrom
hamdanal:shapely-geom_type
Jun 29, 2026
Merged

shapely: narrower types for geom_type in BaseGeometry subclasses#15955
srittau merged 1 commit into
python:mainfrom
hamdanal:shapely-geom_type

Conversation

@hamdanal

Copy link
Copy Markdown
Contributor

This allows better narrowing for if obj.geom_type == ... checks

@github-actions

Copy link
Copy Markdown
Contributor

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

@srittau
srittau merged commit f7fa13e into python:main Jun 29, 2026
44 checks passed
@hamdanal
hamdanal deleted the shapely-geom_type branch July 10, 2026 19:02
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