def __bool__(self):
        raise TypeError
By purpose, we don't allow bool(...) operations directly on a filter,
dataset/ETHPy150Open jonathanslenders/python-prompt-toolkit/prompt_toolkit/filters/base.py/Filter.__bool__