summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
authorYury Selivanov <yselivanov@sprymix.com>2014-03-29 17:18:30 (GMT)
committerYury Selivanov <yselivanov@sprymix.com>2014-03-29 17:18:30 (GMT)
commit232b9346209a8f61cfecf5908fb69b2b9240ba94 (patch)
tree29b3337dcd43246f6a1e3df0de6353b055d235fc /Doc/library/inspect.rst
parent2819718ee798a4c594cce28f7d920eacd5f61fe4 (diff)
downloadcpython-232b9346209a8f61cfecf5908fb69b2b9240ba94.zip
cpython-232b9346209a8f61cfecf5908fb69b2b9240ba94.tar.gz
cpython-232b9346209a8f61cfecf5908fb69b2b9240ba94.tar.bz2
inspect.docs: Fix indentation and version-added for Signature.from_callable
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 85d9593..2a257c3 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -506,7 +506,7 @@ function.
>>> str(new_sig)
"(a, b) -> 'new return anno'"
- .. classmethod:: Signature.from_callable(obj)
+ .. classmethod:: Signature.from_callable(obj)
Return a :class:`Signature` (or its subclass) object for a given callable
``obj``. This method simplifies subclassing of :class:`Signature`:
@@ -518,6 +518,8 @@ function.
sig = MySignature.from_callable(min)
assert isinstance(sig, MySignature)
+ .. versionadded:: 3.5
+
.. class:: Parameter(name, kind, \*, default=Parameter.empty, annotation=Parameter.empty)