I have two classes with a method each taking objects of the respective other class as arguments. Now I want to use python type hints (PEP 484) on the methods, which results in the following code:
class A:
    def do(self, b: B) -> None:
        pass
class B:
    def do(self, a: A) -> None:
        pass
This will fail as at the first occurrence of B it is not yet defined. How can this stalemate be resolved?
