Conversation
7 tasks done
Contributor
Author
|
This replaces #11642, which GitHub could not reopen after its head history was repaired during CI follow-up. The implementation remains the same focused three-file change; the regression test now explicitly annotates its callback-tracking list to satisfy Mypy. Focused validation: |
Merged
TomNicholas
added a commit
that referenced
this pull request
Sep 30, 2026
Add a v2026.09.1 section and move the #11643 entry, which was merged into the already-released v2026.09.0 section.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Dataset.copy()currently drops the dataset's resource-closing callback even though the copied lazy variables can still access the same backend. If the original dataset is closed and the copy later reopens the file while loading,copied.close()cannot release that handle.Preserve the callback on copies so either dataset can close a reopened backend resource. The regression test covers closing both the original dataset and its copy.
Checklist
whats-new.rstapi.rst(N/A; no new API)AI Disclosure
Tools: OpenAI Codex
Prompt: Fix load after close automatically reopens, but doesn't close everything #10106 with a focused regression test, preserve the PR template, and run relevant tests and lint.