Skip to content

[rasterio] Allow WarpedVRT to take DatasetWriter - #16156

Open
jack-volantautonomy wants to merge 1 commit into
python:mainfrom
jack-volantautonomy:rasterio-allow-WarpedVRT-to-take-DatasetWriter
Open

[rasterio] Allow WarpedVRT to take DatasetWriter#16156
jack-volantautonomy wants to merge 1 commit into
python:mainfrom
jack-volantautonomy:rasterio-allow-WarpedVRT-to-take-DatasetWriter

Conversation

@jack-volantautonomy

Copy link
Copy Markdown
Contributor

The aim of this PR is to change the typing so that the src dataset provided to WarpedVRT can take a rasterio.io.DatasetWriter too. This is because a DatasetWriter also has the read methods required on it so is a suitable parameter type.

Not sure if this is the most correct fix and if we should make use of protocols instead but should do the job and might just be the fix we need.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

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

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