Skip to content

Commit dd642dd

Browse files
committed
Sync tests
1 parent e10b559 commit dd642dd

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

test-data/unit/check-generics.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2929,8 +2929,8 @@ def mix(fs: List[Callable[[S], T]]) -> Callable[[S], List[T]]:
29292929
def id(__x: U) -> U:
29302930
...
29312931
fs = [id, id, id]
2932-
reveal_type(mix(fs)) # N: Revealed type is "def [S] (S`11) -> builtins.list[S`11]"
2933-
reveal_type(mix([id, id, id])) # N: Revealed type is "def [S] (S`13) -> builtins.list[S`13]"
2932+
reveal_type(mix(fs)) # N: Revealed type is "def [S] (S`6) -> builtins.list[S`6]"
2933+
reveal_type(mix([id, id, id])) # N: Revealed type is "def [S] (S`8) -> builtins.list[S`8]"
29342934
[builtins fixtures/list.pyi]
29352935

29362936
[case testInferenceAgainstGenericCurry]

test-data/unit/check-typeddict.test

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,16 +1170,16 @@ def j(x: T, y: T) -> T: return x
11701170
a: A
11711171
b: B
11721172
c: C
1173-
reveal_type(j(a, b)) \
1174-
# N: Revealed type is "TypedDict({})"
1175-
reveal_type(j(b, b)) \
1176-
# N: Revealed type is "TypedDict({'x'?: builtins.int})"
1177-
reveal_type(j(c, c)) \
1178-
# N: Revealed type is "TypedDict({'x'?: builtins.int, 'y'?: builtins.str})"
1179-
reveal_type(j(b, c)) \
1180-
# N: Revealed type is "TypedDict({'x'?: builtins.int})"
1181-
reveal_type(j(c, b)) \
1182-
# N: Revealed type is "TypedDict({'x'?: builtins.int})"
1173+
reveal_type(j(a, b)) # N: Revealed type is "TypedDict({})"
1174+
reveal_type(j(b, b)) # N: Revealed type is "TypedDict('__main__.B', {'x'?: builtins.int})"
1175+
reveal_type(j(c, c)) # N: Revealed type is "TypedDict('__main__.C', {'x'?: builtins.int, 'y'?: builtins.str})"
1176+
reveal_type(j(b, c)) # N: Revealed type is "TypedDict({'x'?: builtins.int})"
1177+
reveal_type(j(c, b)) # N: Revealed type is "TypedDict({'x'?: builtins.int})"
1178+
1179+
1180+
1181+
1182+
11831183
[builtins fixtures/dict.pyi]
11841184
[typing fixtures/typing-typeddict.pyi]
11851185

0 commit comments

Comments
 (0)