Linux-cpp-lisp:

This raises a different question: why doesn’t it throw an error when I try to assign a GraphModule to self.graph?



This raises a different question: why doesn’t it throw an error when I try to assign a GraphModule to self.graph?

This is a good question. We rely on Python type annotations to ensure type correctness. Typically in our development we use mypy to check type-correctness of code. However, in this case it seems that graph's setter doesn’t have an annotation for its parameter. I will go ahead and add one as well as an assert on an isinstance check. Thanks for bringing this up!