Open
Description
This bug was just logged against pyright (and fixed): microsoft/pyright#1393
I noticed that mypy also fails to report this error.
from typing import List
foo: "List"[int] = [1] # Accepted by mypy but generates runtime error
This bug was just logged against pyright (and fixed): microsoft/pyright#1393
I noticed that mypy also fails to report this error.
from typing import List
foo: "List"[int] = [1] # Accepted by mypy but generates runtime error