def filter()

in share/include_exlude.py [0:0]


    def filter(self, message: str) -> bool:
        """
        filter returns True if the event is included or not excluded
        """

        if self._always_yield:
            return True

        if self._include_only:
            return self._is_included(message)

        if self._exclude_only:
            return not self._is_excluded(message)

        if self._is_excluded(message):
            return False

        return self._is_included(message)