How to make Pylance recognize future scope variables in type expressions without using from __future__ import annotations
I’m using the Pylance extension in VS Code, and I encountered a warning Variable not allowed in type expression
. It seems that Pylance is not recognizing an imported class when used in a type expression.