We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4d947d commit 6a5aab0Copy full SHA for 6a5aab0
1 file changed
Doc/library/inspect.rst
@@ -640,6 +640,9 @@ function.
640
Accepts a wide range of Python callables, from plain functions and classes to
641
:func:`functools.partial` objects.
642
643
+ If the passed object has a ``__signature__`` attribute, this function
644
+ returns it without further computations.
645
+
646
For objects defined in modules using stringized annotations
647
(``from __future__ import annotations``), :func:`signature` will
648
attempt to automatically un-stringize the annotations using
@@ -760,6 +763,8 @@ function.
760
763
sig = MySignature.from_callable(min)
761
764
assert isinstance(sig, MySignature)
762
765
766
+ Its behavior is otherwise identical to that of :func:`signature`.
767
768
.. versionadded:: 3.5
769
770
.. versionadded:: 3.10
0 commit comments