SIGN IN SIGN UP
astral-sh / ruff UNCLAIMED

An extremely fast Python linter and code formatter, written in Rust.

0 0 36 Rust

[ty] Handle cycles in function decorator inference (#25475)

## Summary

Handle recursive `function_known_decorators` queries by falling back to
an empty decorator inference result while Salsa resolves the cycle. This
prevents a Python 3.14 descriptor annotation with an overloaded
`__get__` method from panicking and preserves conservative `Unknown`
behavior during cycle recovery.

Closes https://github.com/astral-sh/ty/issues/3593.
C
Charlie Marsh committed
d33907ff86b8888b11a8bfab7937aa95fe9a615a
Parent: 042a6a1
Committed by GitHub <noreply@github.com> on 5/30/2026, 8:51:21 AM