mirror of https://github.com/astral-sh/ruff
[ty] Make `attributes.md` mdtests faster (#21030)
## Summary That example was too extreme for debug mode.
This commit is contained in:
parent
20510e1d71
commit
81c1d36088
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue