Skip to content

docs: fix incorrect :py:class: role for method reference#657

Open
sedat4ras wants to merge 1 commit intopytest-dev:mainfrom
sedat4ras:docs/fix-broken-refs
Open

docs: fix incorrect :py:class: role for method reference#657
sedat4ras wants to merge 1 commit intopytest-dev:mainfrom
sedat4ras:docs/fix-broken-refs

Conversation

@sedat4ras
Copy link

Fixes #186

PluginManager.add_hookcall_monitoring() is a method, not a class. The docs used :py:class: which generates a broken cross-reference link. Changed to :py:meth: so Sphinx correctly links to the method documentation.

Before:

:py:class:`pluggy.PluginManager.add_hookcall_monitoring()`.

After:

:py:meth:`pluggy.PluginManager.add_hookcall_monitoring()`.

Closes pytest-dev#186

PluginManager.add_hookcall_monitoring() is a method, not a class.
Replace the incorrect :py:class: role with :py:meth: so that Sphinx
generates the correct cross-reference link.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: some name links and refs are borked

1 participant