simplebench.reporters.protocols.reporter_callback module🔗

“Protocols for reporters stuff.

class simplebench.reporters.protocols.reporter_callback.ReporterCallback(*args, **kwargs)[source]🔗

Bases: Protocol

A protocol for callback functions used by Case and Reporters.

Defines a method signature for a reporter callback function.

The method’s signature must match the following:

def method_name(self, *, case: Case, section: Section, output_format: Format, output: Any) -> None: