Improve mdtests style (#14884)

Co-authored-by: Alex Waygood <alex.waygood@gmail.com>
This commit is contained in:
InSync
2024-12-10 20:05:51 +07:00
committed by GitHub
parent 7a0e9b34d0
commit 15fe540251
55 changed files with 1439 additions and 2019 deletions

View File

@@ -67,9 +67,8 @@ t[:4:0] # error: [zero-stepsize-in-slice]
t[0::0] # error: [zero-stepsize-in-slice]
t[::0] # error: [zero-stepsize-in-slice]
def int_instance() -> int: ...
tuple_slice = t[int_instance() : int_instance()]
# TODO: Support overloads... Should be `tuple[Literal[1, 'a', b"b"] | None, ...]`
reveal_type(tuple_slice) # revealed: @Todo(return type)
def _(m: int, n: int):
tuple_slice = t[m:n]
# TODO: Support overloads... Should be `tuple[Literal[1, 'a', b"b"] | None, ...]`
reveal_type(tuple_slice) # revealed: @Todo(return type)
```