How-to articles, tricks, and solutions about PYTHON-TYPING
How do I type hint a method with the type of the enclosing class?
In Python, you can use the self keyword to refer to the instance of the enclosing class within a method.