On 2016-06-08, Nagy László Zsolt <gandalf at shopzeus.com> wrote: > class Test: > def test(self, child : Test): > pass > > NameError: name 'Test' is not defined I think you can fix this by using a string annotation as follows: class Test: def test(self, child: "Test"): pass