Skip to content

Fix return type of __lazy_import__() - #16944

Closed
joshanjohn wants to merge 1 commit into
python:mainfrom
joshanjohn:fix/lazy-import-16747
Closed

joshanjohn wants to merge 1 commit into
python:mainfrom
joshanjohn:fix/lazy-import-16747

Conversation

@joshanjohn

Copy link
Copy Markdown
Contributor

Updates __lazy_import__() in builtins.pyi to return types.ModuleType | types.LazyImportType, matching CPython's runtime behavior (see python/cpython#161715).

Fixes #16747

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

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

@srittau srittau closed this Dec 2, 2026
@srittau

srittau commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

Duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants