Skip to content

raise NotImplementedError for force_identical_write=True on geospatial pin writes#19

Closed
Copilot wants to merge 2 commits intodevelopfrom
copilot/raise-notimplementederror-for-force-identical-writ
Closed

raise NotImplementedError for force_identical_write=True on geospatial pin writes#19
Copilot wants to merge 2 commits intodevelopfrom
copilot/raise-notimplementederror-for-force-identical-writ

Conversation

Copy link
Contributor

Copilot AI commented Feb 23, 2026

force_identical_write=True is not yet implemented for geospatial pin types (GeoDataFrame, Raster). Passing it should raise NotImplementedError rather than silently ignoring it or producing undefined behaviour.

Changes

  • Docstrings (gpkg.py, parquet.py): Mark force_identical_write as "Not supported." — consistent with the existing tif.py docstring
  • Tests (test_gpkg.py, test_parquet.py, test_tif.py): Add test_force_identical_write_raises to each filetype, asserting NotImplementedError is raised with a matching message
board.pin_write(gdf, name="my-pin", type="gpkg", force_identical_write=True)
# NotImplementedError: `force_identical_write=True` is not supported for GeoDataFrame pins.

The error-raising logic itself was already present in all three filetype implementations; this PR adds test coverage and aligns the docstrings.

Original prompt

This section details on the original issue you should resolve

<issue_title> raise NotImplementedError for force_identical_write=True behaviour</issue_title>
<issue_description>See rstudio/pins-python#264 (comment) for some discussion on this. The thing to do at first instance is raise NotImplementedError for the non-default force_identical_write=True</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…al_write=True

Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Copilot AI changed the title [WIP] Raise NotImplementedError for force_identical_write=True behaviour raise NotImplementedError for force_identical_write=True on geospatial pin writes Feb 23, 2026
@nathanjmcdougall
Copy link
Contributor

Woops, it looks like this wasn't actually necessary - it was already done.

@t-t-sonarqube
Copy link

t-t-sonarqube bot commented Feb 23, 2026

Passed Quality Gate passed

Issues

Measures

Project ID: tonkintaylor_geopins-python_93c10492-5d39-4c44-bcf3-bd14cb206319

View in SonarQube

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.

raise NotImplementedError for force_identical_write=True behaviour

2 participants