spekk.transformations.base.Buildable#
- class spekk.transformations.base.Buildable[source]#
Bases:
ABCAn abstract class representing something that can be “built” with a
Specto get information about how the spec changes when transforming functions.- Parameters:
input_spec (Spec) – The spec that is passed into the function.
passed_spec (Spec) – The spec that is passed down into the wrapped function after the transformation has been applied.
returned_spec (Spec) – The spec that is returned up from the wrapped function.
output_spec (Spec) – The final spec that is returned after calling the transformed function.
- __init__()#
Methods
__init__()build(input_spec)Return a copy of this object with information about what happens to the spec when the function is called.
Attributes
The spec for the input kwargs for the function.
The spec of the final returned value from the transformed function.
The spec for the input kwargs that are passed down into the wrapped function after the transformation has been applied.
The spec of the returned value from the wrapped function.
- abstract build(input_spec: Spec) TBuildableSelf[source]#
Return a copy of this object with information about what happens to the spec when the function is called.
- output_spec: Spec | None = None#
The spec of the final returned value from the transformed function.