Skip to content

Commit 81c1d36

Browse files
authored
[ty] Make attributes.md mdtests faster (#21030)
## Summary That example was too extreme for debug mode.
1 parent 20510e1 commit 81c1d36

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/ty_python_semantic/resources/mdtest/attributes.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2476,10 +2476,7 @@ class NestedMixed:
24762476
def g(self: "NestedMixed"):
24772477
self.x = {self.x}
24782478

2479-
def h(self: "NestedMixed"):
2480-
self.x = {"a": self.x}
2481-
2482-
reveal_type(NestedMixed().x) # revealed: Unknown | list[Divergent] | set[Divergent] | dict[Unknown | str, Divergent]
2479+
reveal_type(NestedMixed().x) # revealed: Unknown | list[Divergent] | set[Divergent]
24832480
```
24842481

24852482
And cases where the types originate from annotations:

0 commit comments

Comments
 (0)