ruff
58a68f1b - [ty] Fall back to `Divergent` for deeply nested specializations (#20988)

Commit
113 days ago
[ty] Fall back to `Divergent` for deeply nested specializations (#20988) ## Summary Fall back to `C[Divergent]` if we are trying to specialize `C[T]` with a type that itself already contains deeply nested specialized generic classes. This is a way to prevent infinite recursion for cases like `self.x = [self.x]` where type inference for the implicit instance attribute would not converge. closes https://github.com/astral-sh/ty/issues/1383 closes https://github.com/astral-sh/ty/issues/837 ## Test Plan Regression tests.
Author
Parents
Loading