designspace.RepresentationCheck#

class designspace.RepresentationCheck(n: int, ok: bool, failures: tuple[RepresentationCheckFailure, ...])#

Bases: object

What Representation.check() found: a report, never an exception.

n#

How many draws the check was based on.

Type:

int

ok#

Whether every law held. True exactly when failures is empty.

Type:

bool

failures#

The violations found, one entry per distinct law and detail.

Type:

tuple[RepresentationCheckFailure, …]