Repository navigation
Conversation
Repository owner
locked as spam and limited conversation to collaborators
Oct 14, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
On Python 3.15,
import packagefollowed bylazy import package.childis rewritten to just the lazy child import. The original source immediately loads the parent package. The rewritten source defers it, so initialization that the caller requested no longer runs at that point.Include the declared lazy mode when tracking imported ancestor modules. The exact duplicate check already does this. Keep the existing parent deduplication for imports with the same mode. Also give the existing lazy-keyword helper a version-specific
TypedDict, so nullable Python 3.15 AST flags typecheck without being mistaken for unrelated AST metadata fields.Related to the lazy import support in #443.
Validation:
main; two same-mode controls pass.This was found during review of the ancestor-module duplicate check. AI assistance: OpenAI
gpt-6.1-sol, xhigh, through Codex.