From 77ebc69d5a534a5dd816d3069aea238faa47d801 Mon Sep 17 00:00:00 2001 From: Fangyi Zhou Date: Sun, 5 Oct 2025 19:34:47 +0100 Subject: [PATCH] gh-139620: fix argument name of `load_module` in `importlib` docs The correct arugment is `fullname` instead of `name`. --- Doc/library/importlib.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst index 7eb048fcfc28f9..45641e58eeebc0 100644 --- a/Doc/library/importlib.rst +++ b/Doc/library/importlib.rst @@ -1041,7 +1041,7 @@ find and load modules. Concrete implementation of :meth:`importlib.abc.SourceLoader.set_data`. - .. method:: load_module(name=None) + .. method:: load_module(fullname=None) Concrete implementation of :meth:`importlib.abc.Loader.load_module` where specifying the name of the module to load is optional. @@ -1084,7 +1084,7 @@ find and load modules. Returns ``None`` as bytecode files have no source when this loader is used. - .. method:: load_module(name=None) + .. method:: load_module(fullname=None) Concrete implementation of :meth:`importlib.abc.Loader.load_module` where specifying the name of the module to load is optional.