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