summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMichael Foord <michael@voidspace.org.uk>2012-04-21 17:22:28 (GMT)
committerMichael Foord <michael@voidspace.org.uk>2012-04-21 17:22:28 (GMT)
commit3af125a4aaef5b34d8abf9d50958077473706954 (patch)
tree590b8e25e8ce8be406f8c8ee60e80829830518b3 /Doc
parent2cd48738ba0a593a6edf6f4f41b420ead3719e71 (diff)
downloadcpython-3af125a4aaef5b34d8abf9d50958077473706954.zip
cpython-3af125a4aaef5b34d8abf9d50958077473706954.tar.gz
cpython-3af125a4aaef5b34d8abf9d50958077473706954.tar.bz2
Closes issue 14634. unittest.mock.create_autospec now supports keyword only arguments.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/inspect.rst13
1 files changed, 9 insertions, 4 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index ac6ae99..90b7220 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -440,11 +440,16 @@ Classes and functions
locals dictionary of the given frame.
-.. function:: formatargspec(args[, varargs, varkw, defaults, formatarg, formatvarargs, formatvarkw, formatvalue])
+.. function:: formatargspec(args[, varargs, varkw, defaults, kwonlyargs, kwonlydefaults, annotations, formatarg, formatvarargs, formatvarkw, formatvalue, formatreturns, formatannotations])
- Format a pretty argument spec from the four values returned by
- :func:`getargspec`. The format\* arguments are the corresponding optional
- formatting functions that are called to turn names and values into strings.
+ Format a pretty argument spec from the values returned by
+ :func:`getargspec` or :func:`getfullargspec`.
+
+ The first seven arguments are (``args``, ``varargs``, ``varkw``,
+ ``defaults``, ``kwonlyargs``, ``kwonlydefaults``, ``annotations``). The
+ other five arguments are the corresponding optional formatting functions
+ that are called to turn names and values into strings. The last argument
+ is an optional function to format the sequence of arguments.
.. function:: formatargvalues(args[, varargs, varkw, locals, formatarg, formatvarargs, formatvarkw, formatvalue])