Skip to content

Commit a91591e

Browse files
authored
[ty] Add mdtest suite for typing.Concatenate (#23554)
## Summary This PR adds a comprehensive test suite for `typing.Concatenate` in preparation for astral-sh/ty#1535 and to help the review process in #23119. ## Test Plan Run mdtest.
1 parent 0c88d7f commit a91591e

3 files changed

Lines changed: 681 additions & 8 deletions

File tree

crates/ty_python_semantic/resources/mdtest/annotations/callable.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -373,14 +373,6 @@ def _(c: Callable[Concatenate[int, str, ...], int]):
373373
reveal_type(c) # revealed: (...) -> int
374374
```
375375

376-
And, as one of the parameter types:
377-
378-
```py
379-
def _(c: Callable[[Concatenate[int, str, ...], int], int]):
380-
# TODO: Should reveal the correct signature
381-
reveal_type(c) # revealed: (...) -> int
382-
```
383-
384376
Other type expressions can be nested inside `Concatenate`:
385377

386378
```py

0 commit comments

Comments
 (0)