ruff/crates/ty_python_semantic
Shaygan Hooshyari 195669f33d [ty] Infer type of self as typing.Self in method body (#18473)
Part of https://github.com/astral-sh/ty/issues/159

Add support for adding a synthetic `typing.Self` type for `self`
arguments in methods.
`typing.Self` is assigned as the type if there are no annotations.

- Updated md tests.

---------

Co-authored-by: David Peter <mail@david-peter.de>
2025-10-22 14:30:44 +02:00
..
resources [ty] Infer type of self as typing.Self in method body (#18473) 2025-10-22 14:30:44 +02:00
src [ty] Infer type of self as typing.Self in method body (#18473) 2025-10-22 14:30:44 +02:00
tests [ty] Limit shown import paths to at most 5 unless ty runs with `-v` (#20912) 2025-10-16 13:18:09 +02:00
Cargo.toml [`ruff`] Update schemars to v1 (#20942) 2025-10-20 08:59:52 +02:00
build.rs Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00
mdtest.py [ty] Faster iteration on mdtests (#20465) 2025-09-18 10:48:52 +00:00
mdtest.py.lock Rename Red Knot (#17820) 2025-05-03 19:49:15 +02:00