diff --git a/changelog/522.doc.rst b/changelog/522.doc.rst deleted file mode 100644 index cdadfa8d..00000000 --- a/changelog/522.doc.rst +++ /dev/null @@ -1 +0,0 @@ -Document that hook implementation arguments with default values are not passed by pluggy. diff --git a/docs/index.rst b/docs/index.rst index 6a67265e..f2aaf957 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -595,12 +595,6 @@ To allow for *hookspecs* to evolve over the lifetime of a project, This allows for extending hook arguments (and thus semantics) without breaking existing *hookimpls*. -Only arguments without default values are considered for this opt-in -matching. Arguments with defaults in a *hookimpl* are treated as optional -keyword arguments and are not passed by pluggy, even when the hook caller -provides a value with the same name. If a *hookimpl* needs a value from the -hook call, declare it without a default value. - In other words this is ok: .. code-block:: python