From 1ddd01d92986e6394d742b8ddd426433eceef5df Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Fri, 4 Sep 2026 15:32:36 +0200 Subject: [PATCH 1/2] gh-142349: Document `LazyImportType.resolve()` method --- Doc/library/types.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/types.rst b/Doc/library/types.rst index 38a77119769d724..41890ec4cb4afaf 100644 --- a/Doc/library/types.rst +++ b/Doc/library/types.rst @@ -354,6 +354,10 @@ Standard names are defined for the following types: .. seealso:: :pep:`810` + .. method:: resolve() + + Resolve the lazy object by reifying the lazily imported module. + .. class:: GetSetDescriptorType From dcd84d049bb28496972d8be2f23d7bd08f02cacc Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Thu, 10 Sep 2026 15:23:19 +0200 Subject: [PATCH 2/2] Apply suggestion: mention the return value Co-authored-by: Victorien <65306057+Viicos@users.noreply.github.com> --- Doc/library/types.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/types.rst b/Doc/library/types.rst index 41890ec4cb4afaf..9e928e6dd3637b0 100644 --- a/Doc/library/types.rst +++ b/Doc/library/types.rst @@ -356,7 +356,7 @@ Standard names are defined for the following types: .. method:: resolve() - Resolve the lazy object by reifying the lazily imported module. + Reify the lazy import and return the "real" object being imported. .. class:: GetSetDescriptorType