This is a pretty annoying PR but it avoids pyright from infering the types as Unknown. Although we will only keep mypy in the CI, pyright is the base for pylance which ships with VSCode. And we got VSCode issues in the past (#832), so I think it's worth supporting.
Closes #1242
This is a pretty annoying PR but it avoids
pyright
from infering the types asUnknown
. Although we will only keepmypy
in the CI,pyright
is the base forpylance
which ships with VSCode. And we got VSCode issues in the past (#832), so I think it's worth supporting.