Skip to content

Commit 213ba68

Browse files
committed
TESTING ONLY: deliberately break mdtest assertions to verify GitHub annotations
This commit intentionally introduces wrong `revealed:` expectations to test that `::error` GitHub annotations render correctly on the PR diff. This commit should be reverted before merging. https://claude.ai/code/session_01Pz2xREd4bteUUqxyg3QzpM
1 parent 525303b commit 213ba68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/ty_python_semantic/resources/mdtest/attributes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class C:
2525

2626
c_instance = C(1)
2727

28-
reveal_type(c_instance.inferred_from_value) # revealed: Unknown | Literal[1, "a"]
29-
reveal_type(c_instance.inferred_from_other_attribute) # revealed: Unknown | Literal[1, "a"]
28+
reveal_type(c_instance.inferred_from_value) # revealed: int
29+
reveal_type(c_instance.inferred_from_other_attribute) # revealed: str
3030

3131
# There is no special handling of attributes that are (directly) assigned to a declared parameter,
3232
# which means we union with `Unknown` here, since the attribute itself is not declared. This is

0 commit comments

Comments
 (0)