Surprisingly this simple program doesn't work and I wonder why, and whether it is possible to make it working (without removing parameter type specification):
class Outer:
    class Inner:
        def __init__(self, parent: Outer):
            self.parent = parent
It complains that Outer is not defined. Any ideas?
 
    