FullerSignature¶
-
class
utilipy.utils.inspect.
FullerSignature
(parameters=None, *, return_annotation, obj=None, __validate_parameters__=True)[source]¶ Bases:
inspect.Signature
Signature with better ArgSpec compatibility.
Constructs FullerSignature from the given list of Parameter objects and ‘return_annotation’. All arguments are optional.
Though
Signature
is the new object, python still largely uses the outputs as defined bygetfullargspec
This serves as a bridge, providing methods that return the same output asgetfullargspec
- Parameters
- parametersSequence, optional
list of Parameter objects
- return_annotationAny
return annotation of
obj
- objAny
the object for which this is the signature
Constructs Signature from the given list of Parameter objects and ‘return_annotation’. All arguments are optional.