mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:24:57 +00:00
salsa cache is_subtype_of, with cycle handling
This commit is contained in:
parent
ab05f3b3ee
commit
3c75a7705d
2 changed files with 21 additions and 1 deletions
|
@ -369,5 +369,5 @@ type Y = X | str | dict[str, Y]
|
|||
|
||||
def _(y: Y):
|
||||
if isinstance(y, dict):
|
||||
reveal_type(y)
|
||||
reveal_type(y) # revealed: dict[str, X] | dict[str, Y]
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue