Setup
pyright: 1.1.263
pytorch: 1.12.0+cu113
torchtyping: 0.1.4
Code Example
from torchtyping import TensorType
def example(foo: TensorType["batch"]):
pass
Problem
Pyright reports the following error: "batch" is not defined
Related issue
The same error is reported by mypy when -1 is omitted: #35
Setup
pyright: 1.1.263pytorch: 1.12.0+cu113torchtyping: 0.1.4Code Example
Problem
Pyright reports the following error:
"batch" is not definedRelated issue
The same error is reported by mypy when
-1is omitted: #35