13 Mar
2022
13 Mar
'22
8:57 p.m.
Any time we allow types to be specified outside of type annotations, it tends to create problems. The interpreter must evaluate them immediately even if `from __future__ import annotations` is used. TypeVar scoping is probably the biggest problem in this particular case. Depending on the architecture of the type checker, there can also be issues with circular type references for types passed as arguments to the class declaration. -Eric