salsa cache is_subtype_of, with cycle handling

This commit is contained in:
Carl Meyer 2025-09-18 15:23:02 -07:00 committed by Ibraheem Ahmed
parent ab05f3b3ee
commit 3c75a7705d
2 changed files with 21 additions and 1 deletions

View file

@ -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]
```