[red-knot] Shorten the paths for some mdtest files (#14267)

This commit is contained in:
Alex Waygood
2024-11-11 11:34:33 +00:00
committed by GitHub
parent 5a3886c8b5
commit 3ef4b3bf32
17 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
# Starred expression annotations
Type annotations for `*args` can be starred expressions themselves:
```py
from typing_extensions import TypeVarTuple
Ts = TypeVarTuple("Ts")
def append_int(*args: *Ts) -> tuple[*Ts, int]:
# TODO: should show some representation of the variadic generic type
reveal_type(args) # revealed: @Todo
return (*args, 1)
# TODO should be tuple[Literal[True], Literal["a"], int]
reveal_type(append_int(True, "a")) # revealed: @Todo
```