Skip to content

fix: use spatialgeometry's renamed Polyline instead of deprecated Path - #120

Merged
petercorke merged 1 commit into
jhavl:futurefrom
petercorke:fix/path-to-polyline-rename
Aug 9, 2026
Merged

fix: use spatialgeometry's renamed Polyline instead of deprecated Path#120
petercorke merged 1 commit into
jhavl:futurefrom
petercorke:fix/path-to-polyline-rename

Conversation

@petercorke

Copy link
Copy Markdown
Collaborator

Summary

spatialgeometry renamed the Python class Path -> Polyline (avoids clashing with pathlib.Path -- jhavl/spatialgeometry#42), keeping Path around as a deprecated (FutureWarning) alias.

Migrates swift's one direct reference to the old name (tests/test_protocol.py). The wire-protocol stype string deliberately stays "path" -- changing that too would be a breaking protocol change requiring a matching shapes.js update, for a rename that's purely cosmetic on the Python side -- so shapes.js just gained comments explaining the naming disparity at both the class-level doc comment and the stype === "path" dispatch site, not a code change.

Test plan

  • Full suite passes (76 passed, 4 skipped, 8 deselected)
  • Confirmed no FutureWarning fires anymore: reran the affected test with -W error::FutureWarning, still passes

🤖 Generated with Claude Code

spatialgeometry renamed the Python class Path -> Polyline (avoids
clashing with pathlib.Path -- jhavl/spatialgeometry#42), keeping Path
as a deprecated (FutureWarning) alias. Migrates swift's one direct
reference (test_protocol.py). The wire-protocol stype string
deliberately stays "path" -- changing that too would be a breaking
protocol change for a rename that's purely cosmetic on the Python
side -- so shapes.js needed comments explaining the naming disparity,
not a code change.
@petercorke
petercorke merged commit f1f7da7 into jhavl:future Aug 9, 2026
1 of 2 checks passed
@petercorke
petercorke deleted the fix/path-to-polyline-rename branch August 10, 2026 00:05
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.

1 participant