Skip to content

Commit

Permalink
Fix call_historic() example in index.rst
Browse files Browse the repository at this point in the history
It doesn't take `**kwargs` but an argument `kwargs`.
  • Loading branch information
bluetech committed Jul 21, 2019
1 parent 31d23fc commit 4c519d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,9 @@ using the :py:meth:`pluggy._HookCaller.call_historic()` method:
# call with history; no results returned
pm.hook.myhook.call_historic(config=config, args=sys.argv, result_callback=callback)
pm.hook.myhook.call_historic(
kwargs={"config": config, "args": sys.argv}, result_callback=callback
)
# ... more of our program ...
Expand Down

0 comments on commit 4c519d0

Please sign in to comment.