File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -619,6 +619,9 @@ function.
619
619
Accepts a wide range of Python callables, from plain functions and classes to
620
620
:func: `functools.partial ` objects.
621
621
622
+ If the passed object has a ``__signature__ `` attribute, this function
623
+ returns it without further computations.
624
+
622
625
For objects defined in modules using stringized annotations
623
626
(``from __future__ import annotations ``), :func: `signature ` will
624
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
+
741
746
.. versionadded :: 3.5
742
747
743
748
.. versionadded :: 3.10
You can’t perform that action at this time.
0 commit comments