ruff/crates/ty_python_semantic
InSync 9b0dfc505f
[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>
2025-05-29 23:27:27 +00:00
..
resources [ty] Callable types are disjoint from non-callable @final nominal instance types (#18368) 2025-05-29 23:27:27 +00:00
src [ty] Callable types are disjoint from non-callable @final nominal instance types (#18368) 2025-05-29 23:27:27 +00:00
tests Switch to Rust 2024 edition (#18129) 2025-05-16 13:25:28 +02:00
build.rs
Cargo.toml
mdtest.py
mdtest.py.lock