Lines Matching refs:Signature
48 Introspecting callables with the Signature object
56 The Signature object represents the call signature of a callable object and its
57 return annotation. To retrieve a Signature object, use the :func:`signature`
62 Return a :class:`Signature` object for the given ``callable``::
89 .. class:: Signature
91 A Signature object represents the call signature of a function and its return
95 Signature objects are *immutable*. Use :meth:`Signature.replace` to make a
98 .. attribute:: Signature.empty
102 .. attribute:: Signature.parameters
107 .. attribute:: Signature.return_annotation
110 annotation, this attribute is set to :attr:`Signature.empty`.
112 .. method:: Signature.bind(*args, **kwargs)
118 .. method:: Signature.bind_partial(*args, **kwargs)
120 Works the same way as :meth:`Signature.bind`, but allows the omission of
125 .. method:: Signature.replace(*[, parameters][, return_annotation])
127 Create a new Signature instance based on the instance replace was invoked
130 signature. To remove return_annotation from the copied Signature, pass in
131 :attr:`Signature.empty`.
242 Result of a :meth:`Signature.bind` or :meth:`Signature.bind_partial` call.
252 Should be used in conjunction with :attr:`Signature.parameters` for any
257 Arguments for which :meth:`Signature.bind` or
258 :meth:`Signature.bind_partial` relied on a default value are skipped.
303 :pep:`362` - Function Signature Object.