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 @@ -640,6 +640,9 @@ function.
640
640
Accepts a wide range of Python callables, from plain functions and classes to
641
641
:func: `functools.partial ` objects.
642
642
643
+ If the passed object has a ``__signature__ `` attribute, this function
644
+ returns it without further computations.
645
+
643
646
For objects defined in modules using stringized annotations
644
647
(``from __future__ import annotations ``), :func: `signature ` will
645
648
attempt to automatically un-stringize the annotations using
@@ -763,6 +766,8 @@ function.
763
766
sig = MySignature.from_callable(min)
764
767
assert isinstance(sig, MySignature)
765
768
769
+ Its behavior is otherwise identical to that of :func: `signature `.
770
+
766
771
.. versionadded :: 3.5
767
772
768
773
.. versionadded :: 3.10
You can’t perform that action at this time.
0 commit comments