Skip to content

Commit 40bc3c3

Browse files
Small change to be even more accepting of narrowing rules
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 476cf34 commit 40bc3c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conformance/tests/generics_typevartuple_callable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ def func3(*args: * tuple[int, *Ts, T]) -> tuple[T, *Ts]:
4646
raise NotImplementedError
4747

4848

49-
def has_int_and_str(x: int, y: str):
50-
assert_type(func3(x, y, 3j, 3.4), tuple[float, str, complex])
49+
def has_int_and_str(a: int, b: str, c: float, d: complex):
50+
assert_type(func3(a, b, c, d), tuple[float, str, complex])

0 commit comments

Comments
 (0)