From f35ad0def966c80ef26052379668fc96bd5b7c27 Mon Sep 17 00:00:00 2001 From: Akshay Kumar Sharma <25038017+akzarma@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:01:48 +0530 Subject: [PATCH] docs: show fully qualified namespace plugin keys --- source/guides/creating-and-discovering-plugins.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/guides/creating-and-discovering-plugins.rst b/source/guides/creating-and-discovering-plugins.rst index e8eed66e14..8260216631 100644 --- a/source/guides/creating-and-discovering-plugins.rst +++ b/source/guides/creating-and-discovering-plugins.rst @@ -83,13 +83,14 @@ under that namespace: Specifying ``myapp.plugins.__path__`` to :func:`~pkgutil.iter_modules` causes it to only look for the modules directly under that namespace. For example, if you have installed distributions that provide the modules ``myapp.plugins.a`` -and ``myapp.plugins.b`` then ``discovered_plugins`` in this case would be: +and ``myapp.plugins.b``, ``discovered_plugins`` uses their fully qualified +names as keys: .. code-block:: python { - 'a': , - 'b': , + 'myapp.plugins.a': , + 'myapp.plugins.b': , } This sample uses a sub-package as the namespace package (``myapp.plugins``), but