Files
sphinx/tests/roots
Trevor Bekolay 2c0943784c Disallow module cycles in autosummary (#6792)
Consider the following piece of reST::

  .. automodule:: sphinx.ext.autosummary
     :members:

     .. autosummary::

        sphinx.ext.autosummary.Autosummary

This inserts an autosummary after the module docstring, but before
the members of the module. Without the change in this commit, this
would fail because `import_by_name` would attempt to import::

    sphinx.ext.autosummary.sphinx.ext.autosummary.Autosumary

because the prefix (from the parent) is `sphinx.ext.autosummary`,
and the name is `sphinx.ext.autosummary.Autosummary`, which is able
to be imported from `sphinx.ext.autosummary`, but is not the way
that anyone would want to refer to it.

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2024-07-13 06:37:50 +01:00
..
2022-10-17 22:39:09 +01:00
2018-03-23 23:41:09 +09:00
2021-06-03 16:42:57 +02:00
2022-05-31 17:15:19 +01:00
2019-02-16 01:55:58 +09:00
2019-02-03 19:53:12 +09:00
2022-10-17 22:39:09 +01:00
2020-07-19 00:43:11 +00:00
2020-01-25 17:02:59 +01:00
2020-11-11 13:19:05 +01:00