ruff/crates/ty_python_semantic/src
Andrew Gallant f7973ac870 [ty] Fix handling of metaclasses in object.<CURSOR> completions
Basically, we weren't quite using `Type::member` in every case
correctly. Specifically, this example from @sharkdp:

```
class Meta(type):
    @property
    def meta_attr(self) -> int:
        return 0

class C(metaclass=Meta): ...

C.<CURSOR>
```

While we would return `C.meta_attr` here, we were claiming its type was
`property`. But its type should be `int`.

Ref https://github.com/astral-sh/ruff/pull/19216#discussion_r2197065241
2025-07-14 08:24:23 -04:00
..
module_resolver [ty] Add completions for submodule imports 2025-07-11 10:06:35 -04:00
semantic_index [ty] Use an interval map for scopes by expression (#19025) 2025-07-14 13:50:58 +02:00
types [ty] Fix handling of metaclasses in object.<CURSOR> completions 2025-07-14 08:24:23 -04:00
util [ty] Use python version and path from Python extension (#19012) 2025-07-14 09:47:27 +00:00
ast_node_ref.rs [ty] Add environment variable to dump Salsa memory usage stats (#18928) 2025-06-26 21:27:51 +00:00
db.rs Update Rust toolchain to 1.88 and MSRV to 1.86 (#19011) 2025-06-28 20:24:00 +02:00
dunder_all.rs [ty] Remove ScopedExpressionId (#19019) 2025-07-02 17:57:32 +02:00
lib.rs [ty] Add "kind" to completion suggestions 2025-07-09 12:03:56 -04:00
lint.rs [ty] Add environment variable to dump Salsa memory usage stats (#18928) 2025-06-26 21:27:51 +00:00
list.rs [ty] Add environment variable to dump Salsa memory usage stats (#18928) 2025-06-26 21:27:51 +00:00
module_name.rs [ty] Add environment variable to dump Salsa memory usage stats (#18928) 2025-06-26 21:27:51 +00:00
node_key.rs [ty] Add environment variable to dump Salsa memory usage stats (#18928) 2025-06-26 21:27:51 +00:00
place.rs [ty] add support for nonlocal statements 2025-07-11 09:44:54 -07:00
program.rs [ty] Use python version and path from Python extension (#19012) 2025-07-14 09:47:27 +00:00
pull_types.rs Update Rust toolchain to 1.88 and MSRV to 1.86 (#19011) 2025-06-28 20:24:00 +02:00
python_platform.rs Hug closing } when f-string expression has a format specifier (#18704) 2025-06-17 07:39:42 +02:00
semantic_index.rs [ty] Use an interval map for scopes by expression (#19025) 2025-07-14 13:50:58 +02:00
semantic_model.rs [ty] Use an interval map for scopes by expression (#19025) 2025-07-14 13:50:58 +02:00
site_packages.rs [ty] Use python version and path from Python extension (#19012) 2025-07-14 09:47:27 +00:00
suppression.rs Update Rust toolchain to 1.88 and MSRV to 1.86 (#19011) 2025-06-28 20:24:00 +02:00
types.rs [ty] List all enum members (#19283) 2025-07-14 13:18:17 +02:00
unpack.rs [ty] Remove countme from salsa-structs (#19257) 2025-07-10 11:45:09 +00:00