Skip to main content

StepResult

The shared fields of a step’s result; each step subclasses it with typed values.

Usage

Source

StepResult(**data)

A subclass narrows config to its step’s Config subclass and adds its own fields. to_dict() gives strict JSON (non-finite floats become the strings "NaN", "Infinity" and "-Infinity"), and from_dict() on the same subclass rebuilds an equal result.

Methods

Name Description
from_dict() Rebuild a result from to_dict() output.
to_dict() A JSON-safe dictionary, for the run record and --json.

from_dict()

Rebuild a result from to_dict() output.

Usage

Source

from_dict(data)

to_dict()

A JSON-safe dictionary, for the run record and --json.

Usage

Source

to_dict()