Skip to content

Commit 88bf117

Browse files
Apply suggestion from @rchen152
Co-authored-by: Rebecca Chen <rchen152@gmail.com>
1 parent 7b6a5d2 commit 88bf117

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

conformance/tests/generics_scoping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ def fun_2(x: T) -> T: # and here could be different
1616
assert_type(fun_1(1), Literal[1]) # E[fun1-int]
1717

1818
# One of these two should pass; either is acceptable:
19-
assert_type(fun_1("a"), str) # E[fun1-str]
20-
assert_type(fun_1("a"), Literal["a"]) # E[fun1-str]
19+
assert_type(fun_2("a"), str) # E[fun1-str]
20+
assert_type(fun_2("a"), Literal["a"]) # E[fun1-str]
2121

2222
# > A type variable used in a method of a generic class that coincides
2323
# > with one of the variables that parameterize this class is always bound

0 commit comments

Comments
 (0)