Jacob Bush

Results 2 comments of Jacob Bush

I would like to mention that the `get_args` suggestion is a work around not a solution. For instance, this passes `mypy --strict` (my machine is running `python==3.11.8`, `mypy==1.9.0`): ```python from...

Though a bit verbose, here is my suggestion: ```python from typing import Literal FooBar = Literal["foo", "bar"] FOO_BARS: tuple[FooBar, ...] = ("foo", "bar") for key in FOO_BARS: print(key) ```