Skip to content

Commit 6f1cf5b

Browse files
authored
[red-knot] Minor fix in MRO tests (#14652)
## Summary `bool()` is equal to `False`, and we infer `Literal[False]` for it. Which means that the test here will fail as soon as we treat the body of this `if` as unreachable.
1 parent 8639f8c commit 6f1cf5b

File tree

1 file changed

+1
-1
lines changed
  • crates/red_knot_python_semantic/resources/mdtest

1 file changed

+1
-1
lines changed

crates/red_knot_python_semantic/resources/mdtest/mro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class O: ...
256256
class X(O): ...
257257
class Y(O): ...
258258

259-
if bool():
259+
if returns_bool():
260260
foo = Y
261261
else:
262262
foo = object

0 commit comments

Comments
 (0)