This is a minimal example to reproduce my issue in python/mypy#7339 (comment)
It is expected that mypy will successfully typecheck this code, but it fails with:
test.py:12: error: Value expression in dictionary comprehension has incompatible type "float"; expected type "bool" [misc]
test.py:23: error: Value expression in dictionary comprehension has incompatible type "float"; expected type "bool" [misc]
Found 2 errors in 1 file (checked 1 source file)