def METHOD_NAME(obj: bool) -> int:
    """Hash a boolean value.
    We make sure that `hash(False) == hash(0) != hash(1) == hash(True)` similar
    to Python hash.
    """
    return hash_number(0) if not obj else hash_number(1)