[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.
This commit is contained in:
David Peter
2024-11-28 10:17:15 +01:00
committed by GitHub
parent 8639f8c1a6
commit 6f1cf5b686

View File

@@ -256,7 +256,7 @@ class O: ...
class X(O): ...
class Y(O): ...
if bool():
if returns_bool():
foo = Y
else:
foo = object