File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -451,6 +451,11 @@ whereas this is not:
451
451
def myhook (config , args , extra_arg ):
452
452
print (args)
453
453
454
+ .. note ::
455
+ The one exception to this rule (that a *hookspec * must have as least as
456
+ many arguments as its *hookimpls *) is the conventional `self `_ arg; this
457
+ is always ignored when *hookimpls * are defined as `methods `_.
458
+
454
459
.. _firstresult :
455
460
456
461
First result only
@@ -823,6 +828,10 @@ in your project you should thus use a dependency restriction like
823
828
https://github.com/pytest-dev/pluggy/blob/master/tox.ini#L2
824
829
.. _200+ plugins :
825
830
http://plugincompat.herokuapp.com/
831
+ .. _self :
832
+ https://docs.python.org/3.6/tutorial/classes.html#random-remarks
833
+ .. _methods :
834
+ https://docs.python.org/3.6/tutorial/classes.html#method-objects
826
835
827
836
828
837
.. Indices and tables
You can’t perform that action at this time.
0 commit comments