[red-knot] Properly model control flow through finally
suites
#14015
Labels
red-knot
Multi-file analysis & type inference
finally
suites
#14015
finally
suites intry
/except
blocks have very complex control flow, which we don't yet model, and need to.I've already written extensively about the complexities of
finally
blocks, so I won't try to summarise them again here. Instead, I'll point to:ruff/crates/red_knot_python_semantic/src/semantic_index/builder.rs
Lines 929 to 939 in 76e4277
finally
-related TODO comments in our exception-handler control-flow test suite, from this point onwards: https://github.com/astral-sh/ruff/blob/main/crates/red_knot_python_semantic/resources/mdtest/exception/control_flow.md#exception-handlers-with-finally-branches-but-no-except-branchesThe text was updated successfully, but these errors were encountered: