Skip to content

Commit f35ad0d

Browse files
committed
docs: show fully qualified namespace plugin keys
1 parent 5ecbc0d commit f35ad0d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎source/guides/creating-and-discovering-plugins.rst‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,14 @@ under that namespace:
8383
Specifying ``myapp.plugins.__path__`` to :func:`~pkgutil.iter_modules` causes
8484
it to only look for the modules directly under that namespace. For example,
8585
if you have installed distributions that provide the modules ``myapp.plugins.a``
86-
and ``myapp.plugins.b`` then ``discovered_plugins`` in this case would be:
86+
and ``myapp.plugins.b``, ``discovered_plugins`` uses their fully qualified
87+
names as keys:
8788

8889
.. code-block:: python
8990
9091
{
91-
'a': <module: 'myapp.plugins.a'>,
92-
'b': <module: 'myapp.plugins.b'>,
92+
'myapp.plugins.a': <module: 'myapp.plugins.a'>,
93+
'myapp.plugins.b': <module: 'myapp.plugins.b'>,
9394
}
9495
9596
This sample uses a sub-package as the namespace package (``myapp.plugins``), but

0 commit comments

Comments
 (0)