Conversation
nightcityblade
force-pushed
the
fix/issue-10106
branch
from
September 30, 2026 04:44
a0474ee to
fc28ab7
Compare
Contributor
Author
|
Superseded by #11643 after correcting the branch history and the mypy annotation in the regression test. The replacement PR preserves the same focused three-file change and one-commit history. |
7 tasks done
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.