Skip to content

Commit 60facfa

Browse files
authored
one word typo fix in a while_loop.md test case (#23589)
1 parent fbb9fa7 commit 60facfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ty_python_semantic/resources/mdtest/loops/while_loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ a nested cycle, but we strip out _that_ `Divergent` in another part of cycle rec
518518
get the narrowing right and infer that `node` is of type `Node`, but then our monotonic widening
519519
step will union `Node` with `Node | None` from the previous iteration, reproduce the same wrong
520520
answer, and declare that to be the fixpoint. Finally we get false-positive warnings from the fact
521-
that `Node` doesn't have a `.next` field.
521+
that `None` doesn't have a `.next` field.
522522

523523
So, because we do monotonic widening in cycle recovery, we need to make sure that temporarily
524524
`Divergent` expressions in narrowing constraints don't lead to too-wide-but-not-visibly-`Divergent`

0 commit comments

Comments
 (0)