Lines Matching defs:signature

26     signature() - get a Signature object for the callable
128 "signature",
745 :func:`signature` uses this to stop unwrapping if any object in the
1348 Notable differences from inspect.signature():
1358 # signature of the passed object.
1361 # inspect.signature to always return their first parameter ("self",
1375 # Most of the times 'signature' will raise ValueError.
1964 """Private helper to calculate how 'wrapped_sig' signature will
1994 # it effectively disappears from the signature
2008 # signature: "(*, a='spam', b, c)". Because attempting
2047 raise ValueError('invalid method signature')
2102 def _signature_strip_non_python_syntax(signature):
2104 Private helper function. Takes a signature in Argument Clinic's
2105 extended signature format.
2108 * that signature re-rendered in standard Python syntax,
2112 or None if the signature has no positional-only parameters.
2115 if not signature:
2116 return signature, None, None
2121 lines = [l.encode('ascii') for l in signature.split('\n') if l]
2191 raise ValueError("{!r} builtin has invalid signature".format(obj))
2266 raise ValueError("{!r} builtin has invalid signature".format(obj)) from None
2318 """Private helper function to get signature for
2328 raise ValueError("no signature found for builtin {!r}".format(func))
2436 """Private helper function to get signature for arbitrary
2463 # Unwrap until we find an explicit signature or a MethodType (which will be
2492 # This means, that we need to calculate the signature
2563 # descriptor that extracts text signature from the
2568 # class with non-empty text signature.
2576 # return a signature based on it
2587 # Return a signature of 'object' builtin.
2591 'no signature found for builtin type {!r}'.format(obj))
2603 msg = 'no signature found for {!r}'.format(obj)
2616 msg = 'no signature found for builtin function {!r}'.format(obj)
2619 raise ValueError('callable {!r} is not supported by signature'.format(obj))
2655 """Represents a parameter in a function signature.
2821 * signature : Signature
2831 def __init__(self, signature, arguments):
2833 self._signature = signature
2836 def signature(self):
2925 return (self.signature == other.signature and
2943 """A Signature object represents the overall signature of a function.
3209 and `kwargs` to the function's signature. Raises `TypeError`
3216 passed `args` and `kwargs` to the function's signature.
3278 def signature(obj, *, follow_wrapped=True, globals=None, locals=None, eval_str=False):
3279 """Get a signature object for the passed callable."""