We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f446df7 commit 135d5c5Copy full SHA for 135d5c5
Doc/library/inspect.rst
@@ -619,6 +619,9 @@ function.
619
Accepts a wide range of Python callables, from plain functions and classes to
620
:func:`functools.partial` objects.
621
622
+ If the passed object has a ``__signature__`` attribute, this function
623
+ returns it without further computations.
624
+
625
For objects defined in modules using stringized annotations
626
(``from __future__ import annotations``), :func:`signature` will
627
attempt to automatically un-stringize the annotations using
@@ -738,6 +741,8 @@ function.
738
741
sig = MySignature.from_callable(min)
739
742
assert isinstance(sig, MySignature)
740
743
744
+ Its behavior is otherwise identical to that of :func:`signature`.
745
746
.. versionadded:: 3.5
747
748
.. versionadded:: 3.10
0 commit comments