---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-f6d10dcea2e0> in <module>
9 + " ]")
10
---> 11 print_symbol_hierarchy(lang.Wff)
<ipython-input-4-f6d10dcea2e0> in print_symbol_hierarchy(root_class)
5 print_tree(root_class,
6 lambda cls: cls.__subclasses__(),
----> 7 lambda cls: cls.__name__
8 + " [ " + cls.canonical_instance().expression()
9 + " ]")
<ipython-input-2-a2e1335c1f47> in print_tree(root, children_func, name_func)
28 yield from tree(path, children_func, name_func, prefix=prefix+extension)
29
---> 30 for line in tree(root, children_func, name_func):
31 print(line)
<ipython-input-2-a2e1335c1f47> in tree(dir_path, children_func, name_func, prefix)
22 pointers = [tee] * (len(contents) - 1) + [last]
23 for pointer, path in zip(pointers, contents):
---> 24 yield prefix + str(pointer) + name_func(path)
25 if len(children_func(path)): # extend the prefix and recurse:
26 extension = branch if pointer == tee else space
<ipython-input-4-f6d10dcea2e0> in <lambda>(cls)
7 lambda cls: cls.__name__
8 + " [ " + cls.canonical_instance().expression()
----> 9 + " ]")
10
11 print_symbol_hierarchy(lang.Wff)
~/github/connect/ddq/fol/lang.py in canonical_instance()
316 @staticmethod
317 def canonical_instance() -> "PropVarWff":
--> 318 return PropVarWff([PropositionalVariable.canonical_instance()])
319
320
~/github/connect/ddq/fol/lang.py in __init__(self, var)
300 class PropVarWff(Wff):
301 def __init__(self, var: PropositionalVariable):
--> 302 super.__init__([var])
303
304 def is_atomic(self) -> bool:
TypeError: descriptor '__init__' requires a 'super' object but received a 'list'