Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dfa717 commit b07f232Copy full SHA for b07f232
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
@@ -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
771
.. versionadded:: 3.5
772
773
.. versionadded:: 3.10
0 commit comments