bool | False means bool or False

it should just be `bool`