types-shapely
Typing stubs for shapely
Decision gist · record as of 2026-08-14
Yes, if you use shapely and want static type checking. Install it as a development dependency alongside shapely 2.1.*. It has no runtime cost, low friction, and is actively maintained by typeshed. No security concerns. Only skip it if you do not use a type checker or do not use shapely.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; intended for use with shapely 2.1.* versions.
- Low friction installation with a single runtime dependency on numpy.
- Actively maintained with recent releases; last commit within days of the package version date.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most projects, including proprietary software, with minimal restrictions.
last release 2026-07-28 (17 days) · last repo commit 2026-08-14 · 37 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 719,731 downloads/mo, #5,239 on PyPI
Alternatives
Verify before relying
pip install types-shapely
import shapely.geometry
from shapely.geometry import Point
p = Point(0, 0)- Whether these stubs are automatically kept in sync with shapely releases or require manual updates
- Coverage completeness for all shapely 2.1.* APIs beyond what the tested type checkers verify
What it is and what it does
types-shapely is a type stub package that bridges the gap between shapely's geometric library and Python's static type checkers. It provides type annotations for shapely's API, allowing tools like mypy, pyright, and ty to catch type errors in code that uses shapely for geometric operations. The stubs are maintained as part of the typeshed project and are tested against multiple type checkers to ensure accuracy.
This package is a pure annotation layer—it has no runtime behavior and does not replace shapely itself. You install it alongside shapely to enable type checking during development. It depends only on numpy, matching shapely's own dependency, and requires Python 3.10 or later.
Use it for
- Enable mypy or pyright to type-check code that creates and manipulates geometric objects with shapely
- Catch type mismatches in shapely function calls before runtime in a CI/CD pipeline
- Provide IDE autocomplete and type hints for shapely methods in editors that support type stubs
- Validate geometric coordinate and geometry object types in data processing pipelines
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use shapely and want static type checking.
Install it as a development dependency alongside shapely 2.1.*. It has no runtime cost, low friction, and is actively maintained by typeshed. No security concerns. Only skip it if you do not use a type checker or do not use shapely.
Install
types-shapely on PyPI
Before you install
Low friction installation with a single runtime dependency on numpy. Actively maintained with recent releases; last commit within days of the package version date.
Requires Python 3.10 or later; intended for use with shapely 2.1.* versions.
License in practice
Apache-2.0 permissive license allows use in most projects, including proprietary software, with minimal restrictions.
Quickstart
pip install types-shapely
import shapely.geometry
from shapely.geometry import Point
p = Point(0, 0)
Verify before relying
- Whether these stubs are automatically kept in sync with shapely releases or require manual updates
- Coverage completeness for all shapely 2.1.* APIs beyond what the tested type checkers verify
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagenumpy |
| Maintenance | Actively maintained 17 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 719,731 / month, #5,239 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Typing :: Stubs Only |
Evidence: types_shapely-2.1.0.20260728-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “shapely type stubs”
- types-shapelyProvides type stubs for the shapely package, enabling static type…
- reprojReproject shapely geometries between coordinate reference systems…
- antimeridianFixes Shapely geometries and GeoJSON features that cross the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also types-geopandas · types-gunicorn · types-bleach · types-networkx · types-gevent · types-grpcio · types-Deprecated · types-pyflakes · types-boltons · types-pywin32