On 2016-06-08, Nagy László Zsolt <gand...@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
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to