shapely breaking changes
shapely 2.2.0 (October 7, 2026) is its newest release with breaking changes, 39 of them. The first: shapely 2.2.0 requires Python 3.11 or later. Every breaking API change we have recorded in shapely on PyPI: 68 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 2.2.0, released October 7, 2026. Source repository
Its 2.2.0 release requires Python 3.11 or later. Python end of life dates.
shapely 2.2.0 breaking changes
- Removed
Shapely 2.2 only supports Python 3.11 and later, so code running on older Python versions must upgrade Python before installing this release. github.com - Signature changed
shapely.geometry.base.BaseGeometry.__new__
Was def __new__(self); now def __new__(cls). pypi.org - Signature changed
shapely.GeometryCollection.__new__
Was def __new__(self, geoms=None); now def __new__(cls, geoms=None). pypi.org - Signature changed
shapely.LineString.__new__
Was def __new__(self, coordinates=None); now def __new__(cls, coordinates=None). pypi.org - Signature changed
shapely.MultiLineString.__new__
Was def __new__(self, lines=None); now def __new__(cls, lines=None). pypi.org - Signature changed
shapely.MultiPoint.__new__
Was def __new__(self, points=None); now def __new__(cls, points=None). pypi.org - Signature changed
shapely.MultiPolygon.__new__
Was def __new__(self, polygons=None); now def __new__(cls, polygons=None). pypi.org - Signature changed
shapely.Point.__new__
Was def __new__(self, *args); now def __new__(cls, *args). pypi.org - Signature changed
shapely.Polygon.__new__
Was def __new__(self, shell=None, holes=None); now def __new__(cls, shell=None, holes=None). pypi.org - Signature changed
shapely.tests.common.ignore_invalid
Was def ignore_invalid(condition=True); now def ignore_invalid(condition=True, divide=False). pypi.org - Signature changed
shapely.tests.geometry.test_equality.ignore_invalid
Was def ignore_invalid(condition=True); now def ignore_invalid(condition=True, divide=False). pypi.org - Signature changed
shapely.tests.test_constructive.ignore_invalid
Was def ignore_invalid(condition=True); now def ignore_invalid(condition=True, divide=False). pypi.org - Signature changed
shapely.tests.test_coordinates.test_transform
Was def test_transform(geoms, include_z, interleaved); now def test_transform(geoms, include_z, interleaved, transformation, transform_func). pypi.org - Signature changed
shapely.tests.test_coordinates.test_transform_0dim
Was def test_transform_0dim(); now def test_transform_0dim(transform_func). pypi.org - Signature changed
shapely.tests.test_coordinates.test_transform_auto_coordinate_dimension
Was def test_transform_auto_coordinate_dimension(geom, expected); now def test_transform_auto_coordinate_dimension(geom, expected, transform_func). pypi.org - Signature changed
shapely.tests.test_coordinates.test_transform_auto_coordinate_dimension_mixed
Was def test_transform_auto_coordinate_dimension_mixed(); now def test_transform_auto_coordinate_dimension_mixed(transform_func). pypi.org - Signature changed
shapely.tests.test_coordinates.test_transform_auto_coordinate_dimension_mixed_interleaved
Was def test_transform_auto_coordinate_dimension_mixed_interleaved(); now def test_transform_auto_coordinate_dimension_mixed_interleaved(transform_func). pypi.org - Signature changed
shapely.tests.test_coordinates.test_transform_correct_coordinate_dimension
Was def test_transform_correct_coordinate_dimension(); now def test_transform_correct_coordinate_dimension(transform_func). pypi.org - Signature changed
shapely.tests.test_coordinates.test_transform_empty_preserve_z
Was def test_transform_empty_preserve_z(geom); now def test_transform_empty_preserve_z(geom, transform_func). pypi.org - Signature changed
shapely.tests.test_coordinates.test_transform_no_geoms
Was def test_transform_no_geoms(); now def test_transform_no_geoms(transform_func). pypi.org - Signature changed
shapely.tests.test_creation.ignore_invalid
Was def ignore_invalid(condition=True); now def ignore_invalid(condition=True, divide=False). pypi.org - Signature changed
shapely.tests.test_geometry.ignore_invalid
Was def ignore_invalid(condition=True); now def ignore_invalid(condition=True, divide=False). pypi.org - Signature changed
shapely.tests.test_linear.test_shortest_line
Was def test_shortest_line(prepare); now def test_shortest_line(prepare, func). pypi.org - Signature changed
shapely.tests.test_linear.test_shortest_line_empty
Was def test_shortest_line_empty(prepare); now def test_shortest_line_empty(prepare, func). pypi.org - Signature changed
shapely.tests.test_linear.test_shortest_line_none
Was def test_shortest_line_none(prepare); now def test_shortest_line_none(prepare, func). pypi.org - Signature changed
shapely.tests.test_measurement.ignore_invalid
Was def ignore_invalid(condition=True); now def ignore_invalid(condition=True, divide=False). pypi.org - Signature changed
shapely.tests.test_measurement.test_frechet_distance_densify
Was def test_frechet_distance_densify(geom1, geom2, densify, expected); now def test_frechet_distance_densify(func). pypi.org - Signature changed
shapely.tests.test_measurement.test_hausdorff_distance_densify
Was def test_hausdorff_distance_densify(); now def test_hausdorff_distance_densify(func). pypi.org - Signature changed
shapely.tests.test_misc.test_multithreading_enabled_ok
Was def test_multithreading_enabled_ok(args, kwargs); now def test_multithreading_enabled_ok(args, kwargs, multithreading_enabled_func). pypi.org - Signature changed
shapely.tests.test_misc.test_multithreading_enabled_preserves_flag
Was def test_multithreading_enabled_preserves_flag(); now def test_multithreading_enabled_preserves_flag(multithreading_enabled_func). pypi.org - Signature changed
shapely.tests.test_misc.test_multithreading_enabled_raises_arg
Was def test_multithreading_enabled_raises_arg(); now def test_multithreading_enabled_raises_arg(multithreading_enabled_func). pypi.org - Signature changed
shapely.tests.test_misc.test_multithreading_enabled_raises_kwarg
Was def test_multithreading_enabled_raises_kwarg(); now def test_multithreading_enabled_raises_kwarg(multithreading_enabled_func). pypi.org - Signature changed
shapely.tests.test_predicates.ignore_invalid
Was def ignore_invalid(condition=True); now def ignore_invalid(condition=True, divide=False). pypi.org - Signature changed
shapely.tests.test_predicates.test_is_prepared_false
Was def test_is_prepared_false(geometry); now def test_is_prepared_false(geometry, func). pypi.org - Signature changed
shapely.tests.test_predicates.test_is_prepared_true
Was def test_is_prepared_true(geometry); now def test_is_prepared_true(geometry, func). pypi.org - Signature changed
shapely.tests.test_predicates.test_relate
Was def test_relate(); now def test_relate(prepared). pypi.org - Signature changed
shapely.tests.test_predicates.test_relate_pattern
Was def test_relate_pattern(); now def test_relate_pattern(prepared). pypi.org - Signature changed
shapely.tests.test_set_operations.ignore_invalid
Was def ignore_invalid(condition=True); now def ignore_invalid(condition=True, divide=False). pypi.org - Signature changed
shapely.tests.test_strtree.ignore_invalid
Was def ignore_invalid(condition=True); now def ignore_invalid(condition=True, divide=False). pypi.org
shapely 2.0.0 breaking changes
- Signature changed
shapely.algorithms.cga.is_ccw_impl
Was def is_ccw_impl(name); now def is_ccw_impl(name=None). pypi.org - Signature changed
shapely.coords.CoordinateSequence.__init__
Was def __init__(self, parent); now def __init__(self, coords). pypi.org - Signature changed
shapely.errors.GeometryTypeError
Was class GeometryTypeError(ShapelyError, TypeError, ValueError); now class GeometryTypeError(ShapelyError). pypi.org - Signature changed
shapely.geometry.base.BaseGeometry
Was class BaseGeometry; now class BaseGeometry(shapely.Geometry). pypi.org - Signature changed
shapely.geometry.base.BaseGeometry.buffer
Was def buffer(self, distance, resolution=16, quadsegs=None, cap_style=CAP_STYLE.round, join_style=JOIN_STYLE.round, mitre_limit=5.0, single_sided=False); now def buffer(self, distance, quad_segs=16, cap_style='round', join_style='round'... pypi.org - Signature changed
shapely.geometry.base.BaseGeometry.difference
Was def difference(self, other); now def difference(self, other, grid_size=None). pypi.org - Signature changed
shapely.geometry.base.BaseGeometry.intersection
Was def intersection(self, other); now def intersection(self, other, grid_size=None). pypi.org - Signature changed
shapely.geometry.base.BaseGeometry.symmetric_difference
Was def symmetric_difference(self, other); now def symmetric_difference(self, other, grid_size=None). pypi.org - Signature changed
shapely.geometry.base.BaseGeometry.union
Was def union(self, other); now def union(self, other, grid_size=None). pypi.org - Signature changed
shapely.geometry.base.CoordinateSequence.__init__
Was def __init__(self, parent); now def __init__(self, coords). pypi.org
And 13 more in this version. Sign up to see every change
shapely 2.0rc1 breaking changes
- Behavior changed
Point
Point() no longer accepts a sequence with more than one coordinate pair; previously extra coordinates were silently ignored. github.com
shapely 2.0b1 breaking changes
- Renamed
Geometry.buffer
The resolution keyword of the Geometry buffer and offset_curve methods is now quad_segs. github.com - Renamed
Geometry.offset_curve
The resolution keyword of the Geometry buffer and offset_curve methods is now quad_segs. github.com - Renamed
shapely.buffer
The quadsegs keyword of the top-level buffer and offset_curve functions is now quad_segs. github.com - Renamed
shapely.offset_curve
The quadsegs keyword of the top-level buffer and offset_curve functions is now quad_segs. github.com - Renamed
shapely.segmentize
The tolerance keyword of segmentize is now called max_segment_length. Update calls that pass tolerance by keyword. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.