on-internet
← Community

What does __lazy_import__() return?

Stack Overflow ·

What is the return type of __lazy_import__() in Python 3.15+? After writing this answer, I sent a PR to typeshed to annotate the return type of __lazy_import__() as types.LazyImportType. However, I'm now wondering whether this was correct.

Comments

Sign in or sign up to comment and upvote.

No comments yet.