euporie.core.widgets.file_browser.to_filter

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

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