Skip to content

Commit

Permalink
Note that self is ignored in hookimpl signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Goodlet committed May 17, 2018
1 parent 119836b commit 645cef3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,11 @@ whereas this is not:
def myhook(config, args, extra_arg):
print(args)
.. note::
The one exception to this rule (that a *hookspec* must have as least as
many arguments as its *hookimpls*) is the conventional `self`_ arg; this
is always ignored when *hookimpls* are defined as `methods`_.

.. _firstresult:

First result only
Expand Down Expand Up @@ -823,6 +828,10 @@ in your project you should thus use a dependency restriction like
https://github.com/pytest-dev/pluggy/blob/master/tox.ini#L2
.. _200+ plugins:
http://plugincompat.herokuapp.com/
.. _self:
https://docs.python.org/3.6/tutorial/classes.html#random-remarks
.. _methods:
https://docs.python.org/3.6/tutorial/classes.html#method-objects


.. Indices and tables
Expand Down

0 comments on commit 645cef3

Please sign in to comment.