mirror of
https://github.com/astral-sh/ruff
synced 2026-01-09 23:54:36 -05:00
[ty] Make attributes.md mdtests faster (#21030)
## Summary That example was too extreme for debug mode.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user