Skip to content

Commit

Permalink
Fix #9205: py domain: canonical option causes xref resolution error
Browse files Browse the repository at this point in the history
The :canonical: option causes "more than one target for
cross-reference" warning because the class having the same name is
registered.
  • Loading branch information
tk0miya committed May 10, 2021
1 parent d2c8cd3 commit 41277e7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ Bugs fixed
autosummary_generate
* #8380: html search: tags for search result are broken
* #9198: i18n: Babel emits errors when running compile_catalog
* #9205: py domain: The :canonical: option causes "more than one target for
cross-reference" warning

Testing
--------
Expand Down
9 changes: 9 additions & 0 deletions tests/roots/test-domain-py/canonical.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
caninical
=========

:py:class:`.Foo`

.. py:module:: canonical
.. py:class:: Foo
:canonical: original.module.Foo

0 comments on commit 41277e7

Please sign in to comment.