[ty] Make `attributes.md` mdtests faster (#21030)

## Summary

That example was too extreme for debug mode.
This commit is contained in:
David Peter 2025-10-22 16:40:58 +02:00 committed by GitHub
parent 20510e1d71
commit 81c1d36088
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -2476,10 +2476,7 @@ class NestedMixed:
def g(self: "NestedMixed"):
self.x = {self.x}
def h(self: "NestedMixed"):
self.x = {"a": self.x}
reveal_type(NestedMixed().x) # revealed: Unknown | list[Divergent] | set[Divergent] | dict[Unknown | str, Divergent]
reveal_type(NestedMixed().x) # revealed: Unknown | list[Divergent] | set[Divergent]
```
And cases where the types originate from annotations: