euporie.core.widgets.display.to_filter

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

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