Skip to main content

signature

A wrapper around inspect.signature that leaves deferred annotations unevaluated on Python 3.14+, since they are not used in our case.

def signature(
obj: callable
) - > inspect.Signature

A wrapper around inspect.signature that leaves deferred annotations unevaluated on Python 3.14+, since they are not used in our case.

Parameters

NameTypeDescription
objcallableThe callable object (function, class, or method) whose signature is being inspected

Returns

TypeDescription
inspect.SignatureAn object representing the call signature of the given callable, with annotations handled according to the Python version.