ruff
9b0dfc50 - [ty] Callable types are disjoint from non-callable `@final` nominal instance types (#18368)

Commit
199 days ago
[ty] Callable types are disjoint from non-callable `@final` nominal instance types (#18368) ## Summary Resolves [#513](https://github.com/astral-sh/ty/issues/513). Callable types are now considered to be disjoint from nominal instance types where: * The class is `@final`, and * Its `__call__` either does not exist or is not assignable to `(...) -> Unknown`. ## Test Plan Markdown tests. --------- Co-authored-by: Carl Meyer <carl@astral.sh>
Author
Parents
Loading