add boolean type hints to comparison fns