Since ruff 0.7.2 the code below:
class KwargsDict(TypedDict):
foo: int
bar: int
def fun(
**kwargs: Unpack[KwargsDict],
) -> None: ...
Triggers this error:
UP044 [*] Use `*` for unpacking
I don't think the star syntax is allowed in this case though, see: https://peps.python.org/pep-0692/#introducing-a-new-syntax
And making this change triggers another Ruff error:
SyntaxError: Starred expression cannot be used here Ruff