Closed adam-urbanczyk closed 3 years ago
Yeah, looks like there's a bug with using forward references and subscripts together. I'll work on a fix, but there's a workaround in the meantime. Call evaluate
once on methods that using forward references.
A.segment.evaluate()
a = A()
...
It's still not fully fixed. An annotation could have forward references and a subscript. And with PEP 563's from __future__ import annotations
string annotations are even more common.
As stated in the title, I get an error on the first invocation. Subsequent invocations do work. I'm using your master branch and py3.8. Any pointers will be welcome.
Here is a MWE :