Approval#

class scikitplot.agent.Approval(digest, granted, approver, note='')[source]#

A person’s answer to an ApprovalRequest.

Parameters:
digeststr

The request’s ApprovalRequest.digest: what is approved.

grantedbool

True approves the action; False refuses it.

approverstr

Who answered, recorded in the state and the audit trail.

notestr, default=””

Recorded with the answer.

Parameters:

Examples

>>> from scikitplot.agent import Approval
>>> Approval("0" * 64, granted=True, approver="allen").granted
True
approver: str[source]#
digest: str[source]#
granted: bool[source]#
note: str = ''#
to_dict()[source]#

Return a JSON-compatible mapping.

Return type:

dict[str, Any]