A group of operations; subclass it with the operations as class
attributes. Clients are made by client.make and
client.make_test, not by calling the class.
GM is the middleware every operation runs; OM the middleware
some operations run (op.middleware(M), or an operation taken from a
group with middleware), which make needs too. Pyright cannot gather
it from the class attributes, so it is declared, and a group whose
operations run middleware it does not declare is a TypeError.
Functions#
__init__#
__init__(methods) -> None| Parameter | Type | Description |
|---|---|---|
methods | Mapping[AnyOperation, object] |
def __init__(self, methods: Mapping[AnyOperation, object]) -> None:
self._methods = dict(methods)