Description
Ruff complains with F821 Undefined name "xyz" for the values described in arguments typed as typing.Literal. I was however only able to reproduce this when Literal is imported indirectly (i.e. not from typing import Literal).
As an example, the following file passes all checks:
from typing import Literal
a: Literal["fu", "bar"] = "fu"
a = "bar"
But this does not: