How do I type hint a method with the type of the enclosing class? How do I type hint a method with the type of the enclosing class? python python