@@ -786,17 +786,20 @@ Classes and functions
786786 :func: `getargspec ` or :func: `getfullargspec `.
787787
788788 The first seven arguments are (``args ``, ``varargs ``, ``varkw ``,
789- ``defaults ``, ``kwonlyargs ``, ``kwonlydefaults ``, ``annotations ``). The
790- other five arguments are the corresponding optional formatting functions
791- that are called to turn names and values into strings. The last argument
792- is an optional function to format the sequence of arguments. For example::
789+ ``defaults ``, ``kwonlyargs ``, ``kwonlydefaults ``, ``annotations ``).
793790
794- >>> from inspect import formatargspec, getfullargspec
795- >>> def f(a: int, b: float):
796- ... pass
797- ...
798- >>> formatargspec(*getfullargspec(f))
799- '(a: int, b: float)'
791+ The other six arguments are functions that are called to turn argument names,
792+ ``* `` argument name, ``** `` argument name, default values, return annotation
793+ and individual annotations into strings, respectively.
794+
795+ For example:
796+
797+ >>> from inspect import formatargspec, getfullargspec
798+ >>> def f (a : int , b : float ):
799+ ... pass
800+ ...
801+ >>> formatargspec(* getfullargspec(f))
802+ '(a: int, b: float)'
800803
801804
802805.. function :: formatargvalues(args[, varargs, varkw, locals, formatarg, formatvarargs, formatvarkw, formatvalue])
0 commit comments