Open kitagry opened 1 month ago
T = Literal["foo", "bar"] t: T = luigi.ChoiceParameter(choices=typing.get_args(T), var_type=str) # ok
T = Literal["foo", "bar"] t: T = luigi.ChoiceParameter(choices=typing.get_args(T), var_type=str) # mypy: error
Expected
Actual