Skip to content

docs: clarify hookimpl arguments with defaults#675

Merged
RonnyPfannschmidt merged 1 commit into
pytest-dev:mainfrom
nightcityblade:docs-hookimpl-default-args
May 17, 2026
Merged

docs: clarify hookimpl arguments with defaults#675
RonnyPfannschmidt merged 1 commit into
pytest-dev:mainfrom
nightcityblade:docs-hookimpl-default-args

Conversation

@nightcityblade
Copy link
Copy Markdown
Contributor

Document that hook implementation arguments with default values are treated as optional and are not passed by pluggy, even if the hook caller provides a matching keyword.

Closes #522.

Tests:

  • git diff --check
  • uv run --with tox tox -e docs (fails before building docs because Sphinx cannot fetch the external pytest intersphinx inventory: DNS resolution for docs.pytest.org)

@RonnyPfannschmidt RonnyPfannschmidt merged commit 8da5891 into pytest-dev:main May 17, 2026
18 checks passed
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.

Why pluggy ignore hookimpl kwargsnames?

2 participants