diff options
-rw-r--r-- | Doc/library/inspect.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 85d9593693..2a257c33d6 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) |