MCPcopy Index your code
hub / github.com/python/cpython / signature

Function signature

Lib/inspect.py:3326–3331  ·  view source on GitHub ↗

Get a signature object for the passed callable.

(obj, *, follow_wrapped=True, globals=None, locals=None, eval_str=False,
              annotation_format=Format.VALUE)

Source from the content-addressed store, hash-verified

3324
3325
3326def signature(obj, *, follow_wrapped=True, globals=None, locals=None, eval_str=False,
3327 annotation_format=Format.VALUE):
3328 """Get a signature object for the passed callable."""
3329 return Signature.from_callable(obj, follow_wrapped=follow_wrapped,
3330 globals=globals, locals=locals, eval_str=eval_str,
3331 annotation_format=annotation_format)
3332
3333
3334class BufferFlags(enum.IntFlag):

Callers 3

docroutineMethod · 0.90

Calls 1

from_callableMethod · 0.80

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…