Skip to content

Commit 4da67a1

Browse files
committed
update snapshots
1 parent bfeaa46 commit 4da67a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ class Z[T]:
368368

369369
z1: Z[Any] = Z(1)
370370
# TODO: This should reveal `Z[Any]`.
371-
reveal_type(z1) # revealed: Z[int]
371+
reveal_type(z1) # revealed: Z[Literal[1]]
372372
```
373373

374374
## PEP-604 annotations are supported
@@ -669,7 +669,7 @@ x4 = invariant(1)
669669
reveal_type(x1) # revealed: Bivariant[Literal[1]]
670670
reveal_type(x2) # revealed: Covariant[Literal[1]]
671671
reveal_type(x3) # revealed: Contravariant[Literal[1]]
672-
reveal_type(x4) # revealed: Invariant[Literal[1]]
672+
reveal_type(x4) # revealed: Invariant[int]
673673

674674
x5: Bivariant[Any] = bivariant(1)
675675
x6: Covariant[Any] = covariant(1)

0 commit comments

Comments
 (0)