I'm looking for typing a class with recursive field
I try the following code:
class Heh:
child_hehs: list[Heh]
but i got following error
NameError: name 'Heh' is not defined
so I try another code:
class MetaHeh(Heh):
pass
class Heh:
child_hehs: list[MetaHeh]
and i got following error again:
NameError: name 'Heh' is not defined
How can i implement this code with typing?