Signatures and annotations¶
Compatibility façade for Python entrypoint APIs.
Signature
dataclass
¶
Raw reflection data required to validate a Python function signature.
parameters
class-attribute
instance-attribute
¶
return_annotation
class-attribute
instance-attribute
¶
accepts_kwargs
property
¶
Return whether the callable accepts arbitrary keyword arguments.
required_parameters
property
¶
Return non-variadic parameters without defaults, in signature order.
return_annotation_name
property
¶
Return the unqualified return annotation name, if one is declared.
read
classmethod
¶
Read the annotated argument and return types of a function.
from_callable
classmethod
¶
Read the annotated argument and return types of a loaded callable.
from_signature
classmethod
¶
Create validation metadata from an inspected Python signature.