diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2014-01-28 21:39:25 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2014-01-28 21:39:25 (GMT) |
commit | 8757ead38e5a05f8525c859ff8c974dba2e290b7 (patch) | |
tree | b3457eec9347ee87381d09ef9fe50fcebe30b1cc /Lib/inspect.py | |
parent | 62560fb19a015181bce2fd5282a7688b5b1d61a4 (diff) | |
download | cpython-8757ead38e5a05f8525c859ff8c974dba2e290b7.zip cpython-8757ead38e5a05f8525c859ff8c974dba2e290b7.tar.gz cpython-8757ead38e5a05f8525c859ff8c974dba2e290b7.tar.bz2 |
inspect: Fix docstrings for Parameter & Signature classes
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index 41cbfe3..0e41626 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -1660,10 +1660,12 @@ class Parameter: The name of the parameter as a string. * default : object The default value for the parameter if specified. If the - parameter has no default value, this attribute is not set. + parameter has no default value, this attribute is set to + `Parameter.empty`. * annotation The annotation for the parameter if specified. If the - parameter has no annotation, this attribute is not set. + parameter has no annotation, this attribute is set to + `Parameter.empty`. * kind : str Describes how argument values are bound to the parameter. Possible values: `Parameter.POSITIONAL_ONLY`, @@ -1888,7 +1890,7 @@ class Signature: * return_annotation : object The annotation for the return type of the function if specified. If the function has no annotation for its return type, this - attribute is not set. + attribute is set to `Signature.empty`. * bind(*args, **kwargs) -> BoundArguments Creates a mapping from positional and keyword arguments to parameters. |