How do I type hint a method with the type of the enclosing class? I have the following code in Python 3: