euporie.core.widgets.display.to_filter

euporie.core.widgets.display.to_filter(bool_or_filter: Union[prompt_toolkit.filters.base.Filter, bool]) prompt_toolkit.filters.base.Filter

Accept both booleans and Filters as input and turn it into a Filter.