Operad# class discopy.grammar.cfg.Operad[source]# Bases: builtins.object An operad is a category with a method __call__ which constructs a tree from a root and a list of branches. Parameters: ob – The colours of the operad. ar – The operations of the operad. ob# alias of Ty ar# alias of Tree