Closed matthew-parrott closed 8 months ago
It looks like this works:
class A:
child: A = None
Which, I'm happy there's a way to do this. But, that means the code won't work in Python and I was hoping (maybe unrealistically so) that I could run the same code (within reason; it has 0 dependencies outside the standard library) in both environments.
Hi there -- does Codon support forward references as defined in PEP 484:
https://peps.python.org/pep-0484/#forward-references
I have some code which looks like this:
But, I get the error:
error: expected type expression