Avatar for the astral-sh user
astral-sh
ruff
BlogDocsChangelog

[ty] Fix semantic token classification for properties accessed on instances

#24065Merged
Comparing
mvanhorn:fix/ty-semantic-tokens-property-classification
(
355a235
) with
main
(
a033779
)
CodSpeed Performance Gauge
0%
Untouched
47
Skipped
60

Benchmarks

60 total
lexer[unicode/pypinyin.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer
Skipped
538 B*
formatter[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter
Skipped
247.6 KB*
linter/all-rules[large/dataset.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules
Skipped
1 MB*
lexer[large/dataset.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer
Skipped
124 B*
formatter[pydantic/types.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter
Skipped
384.9 KB*
parser[large/dataset.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
Skipped
912.2 KB*
linter/default-rules[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules
Skipped
164.1 KB*
formatter[numpy/globals.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter
Skipped
42.9 KB*
linter/all-with-preview-rules[unicode/pypinyin.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules
Skipped
203.9 KB*
formatter[unicode/pypinyin.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter
Skipped
60.2 KB*
linter/all-with-preview-rules[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules
Skipped
316.5 KB*
parser[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
Skipped
200.5 KB*
parser[unicode/pypinyin.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
Skipped
58.7 KB*
linter/default-rules[unicode/pypinyin.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules
Skipped
57.5 KB*
linter/default-rules[numpy/globals.py]
crates/ruff_benchmark/benches/linter.rs::default_rules::benchmark_default_rules
Skipped
39.8 KB*
linter/all-with-preview-rules[large/dataset.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules
Skipped
1.1 MB*
linter/all-with-preview-rules[pydantic/types.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules
Skipped
667.1 KB*
lexer[pydantic/types.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer
Skipped
237 B*
linter/all-rules[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules
Skipped
289.2 KB*
lexer[numpy/globals.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer
Skipped
887 B*
linter/all-rules[numpy/globals.py]
crates/ruff_benchmark/benches/linter.rs::all_rules::benchmark_all_rules
Skipped
58.2 KB*
lexer[numpy/ctypeslib.py]
crates/ruff_benchmark/benches/lexer.rs::lexer::benchmark_lexer
Skipped
1.6 KB*
linter/all-with-preview-rules[numpy/globals.py]
crates/ruff_benchmark/benches/linter.rs::preview_rules::benchmark_preview_rules
Skipped
59 KB*
parser[numpy/globals.py]
crates/ruff_benchmark/benches/parser.rs::parser::benchmark_parser
Skipped
19.7 KB*
formatter[large/dataset.py]
crates/ruff_benchmark/benches/formatter.rs::formatter::benchmark_formatter
Skipped
1.1 MB*

Commits

Click on a commit to change the comparison range
Base
main
a033779
0%
[ty] Fix semantic token classification for properties accessed on instances
df43189
5 months ago
by mvanhorn
-0.02%
[ty] Remove redundant is_property_instance guard, match PropertyInstance variant directly
88b1985
5 months ago
by mvanhorn
-0.03%
[ty] Add readonly modifier for read-only properties, fix cargo fmt
6f01ec3
4 months ago
by mvanhorn
-0.03%
[ty] Set readonly modifier for properties from definition path
469dc6f
4 months ago
by mvanhorn
+0.01%
[ty] Fix failing snapshot tests, add property_readonly_modifier test
cc4a189
4 months ago
+0.07%
Fix more tests
0945862
4 months ago
by MichaReiser
+0.01%
fix: prefer PropertyInstanceType with setter, add union fallback test
d704fbd
4 months ago
by mvanhorn
+0.04%
fix: detect setter via AST decorator, handle union fallback
9a87642
4 months ago
by mvanhorn
+0.02%
fix: scan class AST for setter decorator instead of relying on type
de7c1a4
4 months ago
by mvanhorn
+0.01%
Formatting, snapshots
ed3fdde
4 months ago
by MichaReiser
-0.04%
Simplify
ea2b364
4 months ago
by MichaReiser
-0.02%
Use `static_member`
355a235
4 months ago
by MichaReiser
© 2026 CodSpeed Technology
Home Terms Privacy Docs