segram.utils.matching module

class segram.utils.matching.Matcher(func: Callable | None = None)[source]

Bases: object

Matcher class.

func

Matching function. If None then fallback to match() is attempted. The match method should be defined as a static method.

static match(obj: None) bool[source]

Default matching function.