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

[`pyflakes`] Skip `undefined-name` (`F821`) for conditionally deleted variables

#24088Merged
Comparing
dylwil3:try-else-undefined
(
0c34a16
) with
main
(
f32b9bb
)
CodSpeed Performance Gauge
0%
Untouched
30
Skipped
27

Benchmarks

27 total
static_frame
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
23.6 s*
sympy
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
63.7 s*
altair
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
5.1 s*
pandas
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
73.1 s*
tanjun
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
2.8 s*
colour_science
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
72 s*
multithreaded
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
1.3 s*
pydantic
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
5.6 s*
freqtrade
crates/ruff_benchmark/benches/ty_walltime.rs
Skipped
8.2 s*
hydra-zen
crates/ruff_benchmark/benches/ty.rs::project::hydra::project
Skipped
1.1 s*
attrs
crates/ruff_benchmark/benches/ty.rs::project::attrs::project
Skipped
478.3 ms*
DateType
crates/ruff_benchmark/benches/ty.rs::project::datetype::project
Skipped
218.3 ms*
ty_micro[large_isinstance_narrowing]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_large_isinstance_narrowing
Skipped
146 ms*
ty_micro[complex_constrained_attributes_3]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_3
Skipped
76.5 ms*
ty_micro[many_string_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_string_assignments
Skipped
80.4 ms*
ty_micro[many_enum_members]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members
Skipped
100.4 ms*
ty_micro[large_union_narrowing]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_large_union_narrowing
Skipped
502 ms*
ty_check_file[cold]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_cold
Skipped
151.4 ms*
ty_check_file[incremental]
crates/ruff_benchmark/benches/ty.rs::check_file::benchmark_incremental
Skipped
8.2 ms*
ty_micro[complex_constrained_attributes_1]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_complex_constrained_attributes_1
Skipped
70.6 ms*
ty_micro[many_enum_members_2]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_enum_members_2
Skipped
175.7 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_many_tuple_assignments
Skipped
68.5 ms*
ty_micro[pandas_tdd]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_pandas_tdd
Skipped
250.2 ms*
ty_micro[many_tuple_assignments]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_tuple_implicit_instance_attributes
Skipped
70.5 ms*
ty_micro[very_large_tuple]
crates/ruff_benchmark/benches/ty.rs::micro::benchmark_very_large_tuple
Skipped
72.5 ms*

Commits

Click on a commit to change the comparison range
Base
main
f32b9bb
+0.01%
test conditional deletion in orelse clause
e3b9e70
4 months ago
by dylwil3
-0.17%
remove never used BindingKind::ConditionalDeletion
0c34a16
4 months ago
by dylwil3
© 2026 CodSpeed Technology
Home Terms Privacy Docs